How do I stop windows 8.1 from freezing when the screen locks

I can confirm that disabling sleep has stopped the freezes. It's been over a week and I've not had any, whereas I was experiencing them at a rate of 3-4 a day