### 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
RID f;
	int fs = p_sd->spans[p_span].font_size;
	if (p_fb_index >= 0 && p_fb_index < p_fonts.size()) {
		
		f = p_fonts[p_fb_index];
	} else if (OS::get_singleton()->has_feature("system_fonts") && p_fonts.size() > 0 && ((p_fb_index == p_fonts.size()) || (p_fb_index > p_fonts.size() && p_start != p_prev_start))) {
		
		RID fdef = p_fonts[0];
		if (_font_is_allow_system_fallback(fdef)) {
			String text = p_sd->text.substr(p_start, 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);
			}
			char scr_buffer[5] = { 0, 0, 0, 0, 0 };