Both Windows 10 and Windows 11 have a bug that causes your PC to restart when you choose the Update and shut down option.
Inevitably, just like any laptop, your MacBook will freeze up on you. Here are some ways to use keyboard shortcuts to shut down or restart your Mac.