### 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
for (int i = 0; i < p_dict.size(); i++) {
		Char16String word = p_dict[i].utf16();
		int32_t len = uspoof_getSkeleton(sc, 0, word.get_data(), -1, NULL, 0, &status);
		skeletons.write[i] = (UChar *)memalloc(++len * sizeof(UChar));
		status = U_ZERO_ERROR;
		uspoof_getSkeleton(sc, 0, word.get_data(), -1, skeletons.write[i], len, &status);
	}
	int32_t len = uspoof_getSkeleton(sc, 0, utf16.get_data(), -1, NULL, 0, &status);
	UChar *skel = (UChar *)memalloc(++len * sizeof(UChar));
	status = U_ZERO_ERROR;
	uspoof_getSkeleton(sc, 0, utf16.get_data(), -1, skel, len, &status);
	for (int i = 0; i < skeletons.size(); i++) {
		if (u_strcmp(skel, skeletons[i]
			match_index = i;
			
		}
	}
	memfree(skel);
	for (int i = 0; i < skeletons.size(); i++) {
		memfree(skeletons.write[i]);
	}
	uspoof_close(sc);
	ERR_FAIL_COND_V_MSG(U_FAILURE(status), -1, u_errorName(status));
	return match_index;
}
bool TextServerAdvanced::_spoof_check(const String &p_string) const {
	UErrorCode status = U_ZERO_ERROR;
	Char16String utf16 = p_string.utf16();
	USet *allowed = uset_openEmpty();
	uset_addAll(allowed, uspoof_getRecommendedSet(&status));