### Godot version

4.0.2.stable

### System information

Windows 10

### Issue description

Engine keeps spamming me this
![изображение](https://user-images.githubusercontent.com/89089095/232018878-1584ed55-5867-4883-9519-67b82ef93813.png)


### Steps to reproduce

No steps, issue happens from time to time absolutely randomly

### Minimal reproduction project

N/A
const HashMap<int, GDScriptTokenizer::CommentData> &comments = tokenizer.get_comments();
	if (!comments.has(p_line)) {
		return;
	}
	ERR_FAIL_COND(!p_brief.is_empty() || !p_desc.is_empty() || p_tutorials.size() != 0);
	int line = p_line;
	DocLineState state = DOC_LINE_NORMAL;
	enum Mode {
		BRIEF,
		DESC,
		TUTORIALS,
		DONE,
	};
	Mode mode = BRIEF;
	if (p_inner_class) {
		while (comments.has(line - 1)) {
			if (!comments[line - 1].new_line || !comments[line - 1].comment.begins_with("##")) {
				break;
			}
			line--;
		}
	}
	String space_prefix;
	if (comments.has(line) && comments[line].comment.begins_with("##")) {
		int i = 2;
		for (; i < comments[line].comment.length(); i++) {
			if (comments[line].comment[i] != ' ') {
				break;
			}