Please check HP for BIOS updates.
As there are various of crashes I would like to suggest MemTest86+ to test the memory to rule out the memory.
Run MemTest86+ to analyse your RAM. MemTest86+ - Test RAM - Windows 10 Forums
MemTest86+ needs to be run for at least 8 complete passes
for conclusive results. Set it running before you go to bed and leave it overnight. We're looking for zero
errors here. Even a single error will indicate RAM failure.
Make a photo of the result and post it.
If errors show up you can stop the test, remove all sticks but 1 and test this single stick in each slot for 8 passes or until errors show, switch sticks and repeat.
If errors show up and you see them a lot later, no problem, the errors don't affect the test.
Please fill in your system specs
Please follow this tutorial
and download the tool. The tool will give you detailed information about your system specs, please fill in your system specs more completely.
How to fill in your system specs: