### 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
};
	struct ItemFade : public Item {
		int starting_index = 0;
		int length = 0;
		ItemFade() { type = ITEM_FADE; }
	};
	struct ItemFX : public Item {
		double elapsed_time = 0.f;
		bool connected = true;
	};
	struct ItemShake : public ItemFX {
		int strength = 0;
		float rate = 0.0f;
		uint64_t _current_rng = 0;
		uint64_t _previous_rng = 0;
		Vector2 prev_off;
		ItemShake() { type = ITEM_SHAKE; }
		void reroll_random() {
			_previous_rng = _current_rng;
			_current_rng = Math::rand();
		}
		uint64_t offset_random(int p_index) {
			return (_current_rng >> (p_index % 64)) |
					(_current_rng << (64 - (p_index % 64)));
		}
		uint64_t offset_previous_random(int p_index) {