### 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
}
		p_sd->ascent = MAX(p_sd->ascent, _font_get_ascent(f, fs));
		p_sd->descent = MAX(p_sd->descent, _font_get_descent(f, fs));
		p_sd->upos = MAX(p_sd->upos, _font_get_underline_position(f, fs));
		p_sd->uthk = MAX(p_sd->uthk, _font_get_underline_thickness(f, fs));
	}
}
bool TextServerAdvanced::_shaped_text_shape(const RID &p_shaped) {
	ShapedTextDataAdvanced *sd = shaped_owner.get_or_null(p_shaped);
	ERR_FAIL_COND_V(!sd, false);
	MutexLock lock(sd->mutex);
	if (sd->valid) {
		return true;
	}
	invalidate(sd, false);
	if (sd->parent != RID()) {
		_shaped_text_shape(sd->parent);
		ShapedTextDataAdvanced *parent_sd = shaped_owner.get_or_null(sd->parent);
		ERR_FAIL_COND_V(!parent_sd->valid, false);
		ERR_FAIL_COND_V(!_shape_substr(sd, parent_sd, sd->start, sd->end - sd->start), false);
		return true;
	}
	if (sd->text.length(
		sd->valid = true;
		return true;
	}
	sd->utf16 = sd->text.utf16();
	const UChar *data = sd->utf16.get_data();
	
	if (sd->script_iter == nullptr) {