### 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
log->clear();
	messages.clear();
	_reset_message_counts();
	tool_button->set_icon(Ref<Texture2D>());
}
void EditorLog::_copy_request() {
	String text = log->get_selected_text();
	if (text.is_empty()) {
		text = log->get_parsed_text();
	}
	if (!text.is_empty()) {
		DisplayServer::get_singleton()->clipboard_set(text);
	}
}
void EditorLog::clear() {