Hi it could be your laptop is over heating.
Check your cooling fan is working, shut down your lap top then get your vacum cleaner and suck out all the fluff from all the air ducks from under your lap top, when you have done this then boot up and see if it still does it.
Good Luck.