### 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
color = Color::from_string(color_option->value, color);
			}
			float frequency = 1.0;
			OptionMap::Iterator freq_option = bbcode_options.find("freq");
			if (freq_option) {
				frequency = freq_option->value.to_float();
			}
			float ease = -2.0;
			OptionMap::Iterator ease_option = bbcode_options.find("ease");
			if (ease_option) {
				ease = ease_option->value.to_float();
			}
			push_pulse(color, frequency, ease);
			pos = brk_end + 1;
			tag_stack.push_front("pulse");
			set_process_internal(true);
		} else if (tag.begins_with("bgcolor=")) {
			String color_str = tag.substr(8, tag.length()).unquote();
			Color color = Color::from_string(color_str, theme_cache.default_color);
			push_bgcolor(color);
			pos = brk_end + 1;
			tag_stack.push_front("bgcolor");
		} else if (tag.begins_with("fgcolor=")) {
			String color_str = tag.substr(8, tag.length()).unquote();
			Color color = Color::from_string(color_str, theme_cache.default_color);
			push_fgcolor(color);
			pos = brk_end + 1;
			tag_stack.push_front("fgcolor");
		} else {
			Vector<String> &expr = split_tag_block;