### 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
_font_set_face_index(sysf.rid, face_idx);
						if (unlikely(!_font_has_char(sysf.rid, text[0]))) {
							continue;
						}
						BitField<FontStyle> style = _font_get_style(sysf.rid);
						int weight = _font_get_weight(sysf.rid);
						int stretch = _font_get_stretch(sysf.rid);
						int score = (20 - Math::abs(weight - font_weight) / 50);
						score += (20 - Math::abs(stretch - font_stretch) / 10);
						if (bool(style & TextServer::FONT_ITALIC) == bool(font_style & TextServer::FONT_ITALIC)) {
							score += 30;
						}
						if (score >= best_score) {
							best_score = score;
							best_match = face_idx;
						}
						if (best_score == 70) {
							
						}
					}
					if (best_match == -1) {
						_free_rid(sysf.rid);
						continue;
					} else {
						_font_set_face_index(sysf.rid, best_match);
					}
					sysf.index = best_match;
					
					if (best_score != 70) {
						Dictionary ftr = _font_supported_variation_list(sysf.rid);