It's the sketch fine when the problem occurs? Your problem it's the time fact? sorry to repeat but i am from Greece and i can't
understand everything. If your problem is the time be aware that it might be the hardware's sleep feature that may cause the issue, a friend of mine had such a problem and when he tried it to an original pro mini everything got smoother.