A strange occurrence has recently been annoying me on my desktop: I usually put my computer into sleep mode rather than shutting it down, but Windows has started deciding I really want to hibernate instead. Between 1 and 10 minutes after sleeping, the computer wakes up and hibernates. It only wakes very briefly and it seems impossible to prevent it from going into hibernation, but input is nevertheless registered.
In Event Viewer the reason for the wake is the infamous "S4 Doze to Hibernate" as the Wake Reason.
By my understanding the setting governing this behaviour is the "Hibernate After" setting listed under Sleep in the settings of the current power plan. Most people seem to be able to alter this behaviour by changing this setting to a high number or to zero, disabling it. However, this setting is already zero, i.e. "Never," yet the phenomenon still occurs. I tried changing it to a very large number (999999) but the computer still wakes up. In this situation, though, it seems like the computer sometimes wakes up, attempts to hibernate and fails to do so: subsequently booting up doesn't succeed properly and the computer reboots itself.
This is pretty bizarre behaviour because it seems like it should only occur with a computer on battery power anyway. What else governs this behaviour, and how can I disable it - without also disabling some other useful feature (e.g. disabling wake timers, disabling hibernate, that kind of thing)?
(Windows 10's sleep behaviour really annoys me: the other ridiculous problem is the Windows Update task that will get re-enabled after you disable it, which wakes the computer from sleep to perform an update and can then fail to do so and never shut down again)