### Godot version

4.0 dev Beta 10

### System information

MacBook Pro M1 Max

### Issue description

After I imported font.ttf file and move it from one folder to another under ://res godot suddenly crashed, and it still crashes after restart.

### Steps to reproduce

Import some font.ttf file and try to move into different folder

### Minimal reproduction project

N/A
PackedInt32Array ret;
	int line_start = 0;
	int line_end = 0; 
	int word_start = 0; 
	int word_length = 0;
	for (int i = 0; i < p_string.length(); i++) {
		const char32_t c = p_string[i];
		if (is_linebreak(c)) {
			
			ret.push_back(line_start);
			ret.push_back(i);
			line_start = i + 1;
			line_end = line_start;
			word_start = line_start;
			word_length = 0;
		} else if (c == 0xfffc) {
			continue;
		} else if ((is_punct(c) && c != 0x005F) || is_underscore(c) || c == '\t' || is_whitespace(c)) {
			
			if (word_length > 0) {
				line_end = i - 1;