It can be caused by an overheated graphics card, incorrect group policies, misconfigured settings, overclocking, system infected with malware, faulty storage, and more. When the system restarts automatically without any information, it can be annoying at times. You always lose the unsaved work due to this.
Hope This Helps,
Peter