Both Windows 10 and Windows 11 have a bug that causes your PC to restart when you choose the Update and shut down option.
If you want to keep Widgets enabled but clean it up a bit, open the Widgets menu, click the Settings gear in the top-right ...