### 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
best_match = face_idx;
									}
									if (best_score == 70) {
										break;
									}
								}
								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);
									if (ftr.has(wdth_tag)) {
										var[wdth_tag] = font_stretch;
										_font_set_stretch(sysf.rid, font_stretch);
									}
									if (ftr.has(wgth_tag)) {
										var[wgth_tag] = font_weight;
										_font_set_weight(sysf.rid, font_weight);
									}
									if ((font_style & TextServer::FONT_ITALIC) && ftr.has(ital_tag)) {
										var[ital_tag] = 1;
										_font_set_style(sysf.rid, _font_get_style(sysf.rid) | TextServer::FONT_ITALIC);
									}
								}
								_font_set_antialiasing(sysf.rid, key.antialiasing);