Unreal Engine 5 Freezes when saving packages or saving anything

Try to delete the Derived Data Cache folder!
Probalty it’s contain some broken cache for shaders.
It’s often happens when you changing unreal version for project…
Or when you have materials with same names but in different folders.