### 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
FontTexturePosition ret;
	int mw = p_width;
	int mh = p_height;
	ShelfPackTexture *ct = p_data->textures.ptrw();
	for (int32_t i = 0; i < p_data->textures.size(); i++) {
		if (p_image_format != ct[i].format) {
			continue;
		}
		if (mw > ct[i].texture_w || mh > ct[i].texture_h) { 
			continue;
		}
		ret = ct[i].pack_rect(i, mh, mw);
		if (ret.index != -1) {
			
		}
	}
	if (ret.index == -1) {
		
		int texsize = MAX(p_data->size.x * p_data->oversampling * 8, 256);
#ifdef GDEXTENSION
		texsize = Math::next_power_of_2(texsize);