In case your Windows keeps crashing or freezing, there are a few solutions you can start with. For instance, with Task Manager, you can start with disabling unnecessary startup apps. After that, perform a clean boot by hiding all Microsoft services in msconfig and turning off the rest. Then restart your PC. Perform system checks by running Command Prompt in administrator mode and entering sfc /scannow, followed by DISM /Online /Cleanup-Image /RestoreHealth.
Look in Event Viewer under Windows Logs > System for the time stamps that are close to the time the crashes happened for any error messages and check if anything is using too much CPU, RAM, or disk with Resource Monitor. To diagnose if the issue is with the user profile, you can create a new user account and see if that fixes the issue. All else failing, you can use the official ISO to do an in-place Windows repair.