The whole computer crashing with requiring rebooting Windows is always a hardware or driver issue. If if happens without direct cause, i. e. not clicking on or starting something, then immediately crash, it looks like a hardware issue.
If it happens shortly after strong CPU usage, it might be overheating. I don't know where you live, but here where I live are currently the highest temperatures of the year, 10°C above normal in my living room.