Have you tried running whocrashed? When it restarts does the fans like, eventually shut down? What happens after that restart? Full PC specs?
Motherboard: Gigabyte GA-78LMT-S2
CPU: AMD FX-6300
GPU: NVIDIA GeforceGTX 1060 6gb
PSU:ATNG Power Co., LTD ATM-600FB
Hard drive: TOSHIBA DT01ACA100 ATA Device