Hi:
It sounds to me like you will need to install a new NVMe M.2 SSD and reinstall the operating system.
Below is the link to the service manual, where you can find the M.2 drive removal and replacement procedure.
Maintenance and Service Guide HP Pavilion Gaming 15 Laptop PC
After you replace the drive, you should be able to use the HP cloud recovery tool with another Windows PC running W7 64 bit or newer to create a bootable USB recovery drive that will reinstall W10, the drivers and the software that originally came with your notebook.
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