Thanks for engaging in HP support Forums! This is a wonderful location to converse with the community, get assistance and find tips! I understand you are having issues related to Computer freezing. Don't worry as I have a few suggestions which should help you resolve this issue.
To provide you with an accurate solution, I'll need a few more details:
Have you recently made any software or hardware changes on the PC before the issue started?
Does the computer freezes while starting the PC? Or does it freezes while running games
Have you tried to run any test on the computer from F2?
Many startup errors and other problems can be resolved by decreasing the amount of power stored in hardware components. Decreasing stored power is sometimes referred to as a "Hard Reset". Use the following steps to perform a hard reset on a computer:
If Windows is open, click Start and then Shutdown.
If Windows is not open and the computer has power, press and hold the power button on the computer until the computer shuts off.
With the power off, disconnect the power cord from the back of the computer.
With the power off and the power cord disconnected, press the power button on the computer for 5 seconds. The power light indicator on or near the power button might turn on briefly but then go out.