The sleep problem is well documented now with books practically written on how to solve it. Unfortunately these fixes usually don't work or work for a few days only for the problem to return.

See this thread.

https://www.eightforums.com/general-support/28226-windows-8-1-refuses-sleep.html