Hello @Stein Jone Hovland ,
Based on my research, There are settings to delay automatic reboot, schedule update installation and schedule auto-restart warnings in the following link:
https://learn.microsoft.com/en-us/windows/deployment/update/waas-restart#control-restart-notifications
This will help to ensure windows update does not force a reboot at random.
If you find the answer above helpful, please Accept the answer to help anyone in the community who might have a similar question to quickly find the solution.