Oops…Windows is Tired error issue

Hi there,
While working on my computer, after awhile when I’m in the middle of some job the computer freezers.
The following error appears.
“Oops Windows is Tired, Hey Windows is tired now. Let is freeze for sometime. See you later!”
When I select the “freeze” option, windows freezers and I can no longer carry out doing my job.
As the mouse and the keyboard do not function at this point I have to force shutdown or restart the computer.
If I select the option to “keep running”, would it in some way harm the computer?
Would this result in me having to reboot the system.
How do I overcome this issue?
What is the cause of this disruption?
Thanks.
