Hello
Thank you for your question and reaching out. I can understand you are having issues related to Windows 10 Shutdown automatically.
- Please check System Event Logs to check exact reason of Shutdown or Restart
- Start your PC in Safe mode and see if still shutdown
- As your Windows is not Activated , Please try to Active it and apply latest Windows updates.
--------------------------------------------------------------------------------------------------------------------------------
--If the reply is helpful, please Upvote and Accept as answer--