### 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
void set_offset(int p_pixel);
	void set_meta_underline(bool p_underline);
	bool is_meta_underlined() const;
	void set_hint_underline(bool p_underline);
	bool is_hint_underlined() const;
	void set_scroll_active(bool p_active);
	bool is_scroll_active() const;
	void set_scroll_follow(bool p_follow);
	bool is_scroll_following() const;
	void set_tab_size(int p_spaces);
	int get_tab_size() const;
	void set_context_menu_enabled(bool p_enabled);
	bool is_context_menu_enabled() const;
	void set_shortcut_keys_enabled(bool p_enabled);
	bool is_shortcut_keys_enabled() const;
	void set_fit_content(bool p_enabled);
	bool is_fit_content_enabled() const;
	bool search(const String &p_string, bool p_from_selection = false, bool p_search_previous = false);
	void scroll_to_paragraph(int p_paragraph);
	int get_paragraph_count() const;
	int get_visible_paragraph_count() const;
	float get_line_offset(int p_line);
	float get_paragraph_offset(int p_paragraph);
	void scroll_to_line(int p_line);
	int get_line_count() const;
	int get_visible_line_count() const;
	int get_content_height() const;
	int get_content_width() const;
	void scroll_to_selection();
	VScrollBar *get_v_scroll_bar() { return vscroll; }