I have a Mac Mini M1 which I want to have its OS updated. When I try to go with the normal procedure: go to Settings > Check Update and install it, I get this problem: the bar at the top of the screen goes up (disappears) and the dock too goes down (disappears). All I get is a screen with its wallpaper and a working mouse, but nothing else responds. Clicking does nothing and no other action will do anything.
I left it in that state for 2 hours and I received a black screen. When I clicked, it went back to the wallpaper and mouse screen. Left it like that for 5 more hours and nothing, until I decided to force a restart. After restarting, I have a normal Mac with apps, etc all working fine. But when I tried restarting, it proceeded to install a new Safari version and the same thing happened. So, the problem seems to be with restarting. I don't know where I am going wrong, but I want to update its software and I don't have much practice with macOS. So, I need help on possible solutions or workarounds.