Try disabling auto restart on BSOD:
https://www.kapilarya.com/disable-automatic-restart-after-failure-in-windows-10
And then look for the message on screen. This will most certainly show you whether its software or hardware related, it might also give a code. Note that down and see if you can...