Hi @KH24569105hyjs I've seen similar posts on M1/M2 Macs - resetting Photoshop preferences seems to resolve. Go to Photoshop/Preferences/General and click the reset button and restart Photoshop.
A system hang or freeze requiring a computer restart usually means a low level failure such as a driver (bad video card driver, etc), failing hardware (hard disk, video card, etc.) or damaged OS installation.