### 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
PATH_STATE_START,
		PATH_STATE_SLASH,
		PATH_STATE_PERCENT,
		PATH_STATE_NODE_NAME,
	} path_state = PATH_STATE_START;
	if (previous.type == GDScriptTokenizer::Token::DOLLAR) {
		
		match(GDScriptTokenizer::Token::SLASH);
#ifdef DEBUG_ENABLED
	} else {
		get_node->use_dollar = false;
#endif
	}
	int context_argument = 0;
	do {
		if (previous.type == GDScriptTokenizer::Token::PERCENT) {