### 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) {
							
						}
					}
					if (best_match != -1) {
						f = sysf_cache.var[best_match].rid;
					}
				}
				if (!f.is_valid()) {
					if (system_fonts.has(key)) {
						const SystemFontCache &sysf_cache = system_fonts[key];
						if (sysf_cache.max_var == sysf_cache.var.size()) {
							
							continue;
						}
					}
					if (!system_font_data.has(E)) {
						system_font_data[E] = FileAccess::get_file_as_bytes(E);
					}
					const PackedByteArray &font_data = system_font_data[E];
					SystemFontCacheRec sysf;
					sysf.rid = _create_font();
					_font_set_data_ptr(sysf.rid, font_data.ptr(), font_data.size());
					Dictionary var = dvar;
					
					int best_score = 0;
					int best_match = -1;
					for (int face_idx = 0; face_idx < _font_get_face_count(sysf.rid); face_idx++) {