Hi,
The failure code indicates "Hard Disk 1 Quick Test Failure"
This means that HP hardware diagnostics has detected that the drive is failing and could completly fail at any moment. The drive should be replaced.
The other error that you get at boot is SMART detecting a failure
https://support.hp.com/us-en/document/c01443502
Hope it helps,
David