Hi:
The error code reported...Hard Disk 1 Quick Test Failure
You will need to replace the hard drive and reinstall the operating system.
Here is the link to the hard drive R & R guide.
http://h10032.www1.hp.com/ctg/Manual/c05145971
You can reinstall W10 for free by using the HP cloud recovery client utility.
Here is a link for how to use that utility...
https://support.hp.com/us-en/document/c06162205