There is actually an option to stop Windows 10 automatically restarting everything. At least in the English version - I wouldn't doubt that Microsoft leaves that out for the rest of the World. Windows 11 may be, maybe not, I'm still finding where they have hidden everything.
You can go for the 'only download updates when I specifically give you permission' - this also stops unexpected bills if you are working remotely & Windows wants to update regardless of the cost. If you set it to auto download updates it can (will) cause Windows to act oddly until you give in and manually restart.
You can force Windows (10 & 11) to only restart when you want it to, its now in Advanced options - set your time to when you are usually using the computer and set it ask first.
At least that is how it works for me in Australia with the English language version.