### Godot version

4.1 

### System information

Win 10

### Issue description

![image](https://github.com/godotengine/godot/assets/3350340/fb4d82dc-0301-46d4-85e8-032c32b09fcf)

When causing _"output oveflow"_ by printing a lot of text, formating breaks. Possible because enclosing tag get flushed.

Suggested solution: clear text formating after _output oveflow_ warning.

### Steps to reproduce

Print a lot of text with different text tags (like [color] or [bgcolor]) to console. For example in _process function.

### Minimal reproduction project

N/A
ERR_FAIL_COND(theme_cache.bold_italics_font.is_null());
	_push_def_font(BOLD_ITALICS_FONT);
}
void RichTextLabel::push_italics() {
	ERR_FAIL_COND(theme_cache.italics_font.is_null());
	ItemFont *item_font = _find_font(current);
	_push_def_font((item_font && item_font->def_font == BOLD_FONT) ? BOLD_ITALICS_FONT : ITALICS_FONT);
}
void RichTextLabel::push_mono() {
	ERR_FAIL_COND(theme_cache.mono_font.is_null());
	_push_def_font(MONO_FONT);
}
void RichTextLabel::push_font_size(int p_font_size) {
	_stop_thread();
	MutexLock data_lock(data_mutex);
	ERR_FAIL_COND(current->type == ITEM_TABLE);
	ItemFontSize *item = memnew(ItemFontSize);
	item->font_size = p_font_size;
	_add_item(item, true);
}
void RichTextLabel::push_outline_size(int p_ol_size) {
	_stop_thread();
	MutexLock data_lock(data_mutex);
	ERR_FAIL_COND(current->type == ITEM_TABLE);
	ItemOutlineSize *item = memnew(ItemOutlineSize);
	item->outline_size = p_ol_size;
	_add_item(item, true);
}
void RichTextLabel::push_color(const Color &p_color) {