In some cases, your CPU or GPU may overheat and that will lead to shutdowns.
In previous Windows releases, they often caused BSODs (Blue Screen of Death) and shutdowns.
So, what you’re going to do is check your GPU drivers firstly.
If you are using dual-GPU with Intel (integrated) and AMD/n Vidia (dedicated) graphic cards, make sure to update drivers for both.
Additionally, you may look to update your SSD firmware.
But, since it affects the way your PC is shutting down, it may summon a lot of errors.