Hi,
Never had this happen to me.
First run HP Diagnostics. Start the PC. Tap "ESC". Select "F2". Run system and then all component tests.
I would then go here (Link) if diagnostics pass. A failed diagnostic test means you have to replace specific hardware.
Create W10 installation media on a different PC.
Do a clean install using the installation media. But you will lose data unless you have data backups. This means you should connect the storage device containing data to a different PC to recover data before you do a clean W10 installation.
Regards