### 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
tag_stack.push_front("p");
		} else if (tag.begins_with("p ")) {
			Vector<String> subtag = tag.substr(2, tag.length()).split(" ");
			_normalize_subtags(subtag);
			HorizontalAlignment alignment = HORIZONTAL_ALIGNMENT_LEFT;
			Control::TextDirection dir = Control::TEXT_DIRECTION_INHERITED;
			String lang;
			PackedFloat32Array tab_stops;
			TextServer::StructuredTextParser st_parser_type = TextServer::STRUCTURED_TEXT_DEFAULT;
			BitField<TextServer::JustificationFlag> jst_flags = default_jst_flags;
			for (int i = 0; i < subtag.size(); i++) {
				Vector<String> subtag_a = subtag[i].split("=");
				_normalize_subtags(subtag_a);
				if (subtag_a.size() == 2) {
					if (subtag_a[0] == "justification_flags" || subtag_a[0] == "jst") {
						Vector<String> subtag_b = subtag_a[1].split(",");
						for (const String &E : subtag_b) {
							if (E == "kashida" || E == "k") {
								jst_flags.set_flag(TextServer::JUSTIFICATION_KASHIDA);
							} else if (E == "word" || E == "w") {
								jst_flags.set_flag(TextServer::JUSTIFICATION_WORD_BOUND);
							} else if (E == "trim" || E == "tr") {
								jst_flags.set_flag(TextServer::JUSTIFICATION_TRIM_EDGE_SPACES);
							} else if (E == "after_last_tab" || E == "lt") {
								jst_flags.set_flag(TextServer::JUSTIFICATION_AFTER_LAST_TAB);
							} else if (E == "skip_last" || E == "sl") {
								jst_flags.set_flag(TextServer::JUSTIFICATION_SKIP_LAST_LINE);
							} else if (E == "skip_last_with_chars" || E == "sv") {
								jst_flags.set_flag(TextServer::JUSTIFICATION_SKIP_LAST_LINE_WITH_VISIBLE_CHARS);
							} else if (E == "do_not_skip_singe" || E == "ns") {