To find out what is waking your computer up in the middle of the night, run powercfg -lastwake command in cmd prompt. This will detail what is causing the wake.
I have ran into a problem specifically with 1903+ version of windows and a task called “Universal Orchestrator Start”.
Unfortunately the only way to clear the auto start option in this is to be the “system” user of the computer.
I had to download this app: https://www.sordum.org/9416/powerrun-v1-3-run-with-highest-privileges/
This allows you to run taskschd.msc as “system” user, which WILL allow you to uncheck the “Wake from sleep to execute this task” option from within task scheduler.