Please read this (in particular the section titled "Supply pertinent information for more timely and effective answers”):
https://community.adobe.com/t5/using-the-community/community-how-to-guide-tips-amp-best-practices/td...
If your computer freezes that is not Photoshop’s doing but some other components (RAM, drivers, …) need to be at fault.
Does turning off »Use Graphics Processor« in the Performance Preferences (Photoshop > Preferences > Performance > Graphic Processor Settings) and restarting Photoshop have any bearing on the issue?