If your data is not important Then the next step is to try to perform a full system reset. Also blow out the fans with compressed air to make sure its not an overheating issue.
A power reset (or hard restart) clears all information from the computer's memory without erasing any personal data. Performing a power reset might fix conditions such as Windows not responding, a blank display, software freezing, keyboard stops responding, or other external devices locking up.
Resetting your computer to factory settings might be necessary if the operating system is damaged, the hard drive is corrupted, the computer is infected by a virus, or you are transferring ownership of the computer. HP System Recovery removes all hard drive data and reinstalls the original operating system.
To open Recovery Manager (on most PCs) and initiate a recovery before Windows starts, turn on the computer and immediately press the F11 key repeatedly.
https://support.hp.com/us-en/document/c00006110