### 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
word_start = -1;
				word_length = 0;
			}
		} else {
			if (word_start == -1) {
				word_start = i;
				if (p_chars_per_line <= 0) {
					ret.push_back(line_start);
					ret.push_back(line_end + 1);
					line_start = word_start;
					line_end = line_start;
				}
			}
			word_length += 1;
			if (p_chars_per_line > 0) {
				if (word_length > p_chars_per_line) {
					
					ret.push_back(line_start);
					ret.push_back(i);
					line_start = i;
					line_end = i;
					word_start = i;
					word_length = 1;
				} else if (i - line_start + 1 > p_chars_per_line) {
					
					ret.push_back(line_start);
					ret.push_back(line_end + 1);
					line_start = word_start;
					line_end = line_start;
				}