### 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
String text = sd->text.substr(j, 1);
						String font_name = _font_get_name(fdef);
						BitField<FontStyle> font_style = _font_get_style(fdef);
						int font_weight = _font_get_weight(fdef);
						int font_stretch = _font_get_stretch(fdef);
						Dictionary dvar = _font_get_variation_coordinates(fdef);
						static int64_t wgth_tag = _name_to_tag("weight");
						static int64_t wdth_tag = _name_to_tag("width");
						static int64_t ital_tag = _name_to_tag("italic");
						if (dvar.has(wgth_tag)) {
							font_weight = dvar[wgth_tag].operator int();
						}
						if (dvar.has(wdth_tag)) {
							font_stretch = dvar[wdth_tag].operator int();
						}
						if (dvar.has(ital_tag) && dvar[ital_tag].operator int() == 1) {
							font_style.set_flag(TextServer::FONT_ITALIC);
						}
						String locale = (span.language.is_empty()) ? TranslationServer::get_singleton()->get_tool_locale() : span.language;
						PackedStringArray fallback_font_name = OS::get_singleton()->get_system_font_path_for_text(font_name, text, locale, String(), font_weight, font_stretch, font_style & TextServer::FONT_ITALIC);
#ifdef GDEXTENSION
						for (int fb = 0; fb < fallback_font_name.size(); fb++) {
							const String &E = fallback_font_name[fb];
#else
						for (const String &E : fallback_font_name) {
#endif
							SystemFontKey key = SystemFontKey(E, font_style & TextServer::FONT_ITALIC, font_weight, font_stretch, fdef, this);
							if (system_fonts.has(key)) {
								const SystemFontCache &sysf_cache = system_fonts[key];
								int best_score = 0;