I ended up here because I'm having the same problem. Like you said, it's not all the time - it only happens now and then.
I turn my phone completely off when I go to bed, so it's not any apps running that are the culprit. But, it is food-for-thought for those who don't turn their phone off...