To provide you with an accurate solution, I would like to know the following:
Have you made any software or hardware changes on your computer?
Let's try to run an extensive system test from F2 and check if the hardware components on your PC are functioning correctly.
1. Hold the power button for at least five seconds to turn off the computer.
2. Turn on the computer and immediately press Esc repeatedly, about once every second.
When the menu appears, press the F2 key.
3. On the HP PC Hardware Diagnostics (UEFI) main menu, click System Tests.
4. Click Extensive Test.
5. Click Run once, or Loop until error.
While the test is running, the time remaining and test result for each component are
shown on the screen.
6. If a component fails a test, write down the failure ID (24-digit code) so you have it
available when you contact HP Customer Support. The information is also available in
Test Logs on the main menu.
Refer this article to know more information about running system diagnostics on your PC. Click Here
Depending on the test results, If the test fails then this clearly indicates a possible hardware failure Please contact our HP support team with the failure ID for further assistance.
If the test passes, then I would suggest you could try to use HP Cloud Recovery Tool which allows you to download recovery software to a USB drive.
If this option does not work then you can follow this link: HP PCs - Obtaining PC Recovery USB Drives or Discs Or else you may contact our HP support team to help you order a set of recovery media for your PC.
HP support team can be reached on this link.
Hope this helps!
Please click “Accept as Solution” if you feel my post solved your issue, it will help others find the solution. Click the “Kudos/Thumbs Up" on the bottom right to say “Thanks” for helping!