### 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
if (glyph_info[i].mask & HB_GLYPH_FLAG_UNSAFE_TO_BREAK) {
				gl.flags |= GRAPHEME_IS_CONNECTED;
			}
#if HB_VERSION_ATLEAST(5, 1, 0)
			if (glyph_info[i].mask & HB_GLYPH_FLAG_SAFE_TO_INSERT_TATWEEL) {
				gl.flags |= GRAPHEME_IS_SAFE_TO_INSERT_TATWEEL;
			}
#endif
			gl.index = glyph_info[i].codepoint;
			if (gl.index != 0) {
				_ensure_glyph(fd, fss, gl.index | mod);
				if (p_sd->orientation == ORIENTATION_HORIZONTAL) {
					if (subpos) {
						gl.advance = (double)glyph_pos[i].x_advance / (64.0 / scale) + ea;
					} else {
						gl.advance = Math::round((double)glyph_pos[i].x_advance / (64.0 / scale) + ea);
					}
				} else {
					gl.advance = -Math::round((double)glyph_pos[i].y_advance / (64.0 / scale));
				}
				if (subpos) {
					gl.x_off = (double)glyph_pos[i].x_offset / (64.0 / scale);
				} else {
					gl.x_off = Math::round((double)glyph_pos[i].x_offset / (64.0 / scale));
				}
				gl.y_off = -Math::round((double)glyph_pos[i].y_offset / (64.0 / scale));
			}
			if (!last_run || i < glyph_count - 1) {
				
				if (sp_sp && is_whitespace(p_sd->text[glyph_info[i].cluster])) {