Greetings,
Welcome back to the forum.
I am not a HP employee.
Troubleshooting sleep issues can be one of the toughest problems to solve because the cause can be many things. You can review the error report but this is a tedious task. This report can also be hard to decipher.
1. Reset the Power plan in Control Panel, Power Options, Change plan settings, Restore default setting for this plan.
2. Try updating the BIOS using this (Link).
3. Check Device Manager for hardware problems.
4. Check Windows Update for newer drivers. Check the HP site (Link) for chipset, IMEI, SATA, and Network drivers. You have an Intel chipset.
5. Check Event Viewer, Custom Views, Administrative Events for more information.
6. Run a Check Disk (Link).
7. Run HP Hardware Diagnostics, Start the PC, tap "F2", select system tests.
I am working on a fairly new PC with a similar problem, the PC shuts down when in sleep but also randomly shuts down when the PC is awake. After eliminating the above items and running the PC using a minimal configuration I am currently checking the PCs power button and the power supply.
Regards