Unreal 5.1: Materials don't load properly on level change, but they work if the map is played directly

You can try Migrate all the assets except the mesh with error texture into other project, and import the mesh again (not from the old project), and try run game again. I think it because you used to delete some files and it crashed somewhere. Or simple way is to use Fix Redirector if it works.