Windows 10 automatically reboots after it automatically installs Windows updates even when one is logged in and may have unsaved work.
Or, you can also perform this by modifying the Windows registry. See https://www.makeuseof.com/tag/disable-forced-restarts-windows-update/ .
To disable unneeded Apache modules in order to reduce the memory utilized and improve performance. This may also result into improved security since it is a best security practice to not enable things you do not need.