Below is the failure report generated by the code you posted, minus your notebook's serial number.
Failure ID Tag Checksum HP Serial Number Test Date Failure Code Device Includes Error Message
0K7L6X-8NLAAB-GXGGRG-60D103 | OK | XXXXXXXXXX | 11/26/20 | 301 | Storage | Floppy Drive, Hard Drive, Memory Drive, Optical Drive, SCSI, Tape Drive | Hard Disk 1 SMART Hard Drive Detects Imminent Failure |
You will need to replace the hard drive and reinstall the operating system.
If you can still get into Windows, back up any files you want to save onto a portable hard drive.
Below is the link to the service manual, where you can find the hard drive removal and replacement procedure.
HP ENVY x360 15m Convertible PC Maintenance and Service GuideIMPORTANT! This document is intended fo...
After you replace the drive, you can use the HP cloud recovery tool to create a bootable USB recovery drive that will reinstall W10, the drivers and the software that originally came with your notebook.
You will need to have access to another Windows PC running W7 64 bit or newer to use the cloud recovery tool, and a 32 GB USB flash drive.
Here is an info link for how to use that utility...
HP Consumer PCs - Using the HP Cloud Recovery Tool (Windows 10, 7) | HP® Customer Support