Recently I got this problem, but unable to find a fix here, despite similar question has been asked before:
The symptom was the same, event id 59 instead of event id 42.
However I got the solution somewhere else (https://www.zhihu.com/question/264893048). It was caused by a VPN software, called UUGameBooster (https://uu.163.com/global/), which in its default setting activates an entry called "Keep connecting the Internet after slept computer". The setting appears to replace "sleep mode" with "away mode", therefore prevents sleeping from happening. Since it is a default setting, installing (or running once?) the software will automatically modify the system, even uninstalling will not fix it. It can be fixed by untick the entry in the software setting, but I do not know how to fix it without using the software itself.
Any idea?