Hi:
The error code reported, Hard Disk 1 Quick Test Failure, means that the hard drive needs to be replaced, and the operating system reinstalled.
Below is the link to the service manual for your notebook. The HDD R & R procedure can be found in chapter 6.
http://h10032.www1.hp.com/ctg/Manual/c05493257
You may want to consider purchasing a better performing, normally more reliable 2.5" solid state drive (SSD).
After you replace the hard drive, you can reinstall W10 by using the HP cloud recovery client utility.
Here is an info link for how to use that utility...
https://support.hp.com/us-en/document/c06162205