Good day! I'm Raniel, a Microsoft user like you. I understand your frustration regarding this issue but I'll do my best to help.
Usually, random reboots are caused by the system overheating or your power supply/RAM being faulty. Kindly check for blockage on your PC's exhaust vents, and let it cool down for a while before turning it back on.
Kindly double-check if your machine doesn't have any pending security patches: Go to Start > Settings > Update & Security > Windows Update > Check for Updates. Also ensure that the necessary drivers for your machine are properly updated by getting them from the manufacturer's website. You may refer to this guide:
https://support.microsoft.com/help/4028443/wind...
Once done, perform a clean boot and see if you'll encounter the issue: https://support.microsoft.com/help/929135/how-t...
I also suggest that you perform the additional steps on this article to improve the performance of your machine: https://support.microsoft.com/windows/tips-to-i...
I hope this helps. Good luck!