I have mine set from sunset to sunrise. Dark mode enabled, but when I restarted my device, it went back to light mode.
Not sure why and also unsure if it's related to the issue you're having but I thought I'd mention it. Didn't matter to me too much as I was just testing the scheduling. I normally use substratum themes so I don't typically have automated light/dark mode.