I'm afraid to say after looking over everything, the model of laptop you are using has a distinct tendency to overheat. Considering this, it will not be going into thermal shutdown, but actually stopping the connection to your battery or power source overall. This notebook does not have enough ventilation to allow such games as GF, EE, or similar to run on it. I'm sorry to say this, but if you wish to play GF you might want to get yourself a new machine to play it on. I wish I could be more help, but this is an internal build issue- not something we can realistically fix with our suggestions.
HP decided the best place for fans is at the bottom of the computer...
Shame really... you have such nice computer specs compared to mine.
Anyways a guy here
recommends capping processor speed to 75 percent, getting a cooling pad and you get 1/2 an hour of game-play (Diablo III has similar requirements to GF).
Also perhaps consider getting any other computer, the computer I am currently using Acer Aspire 5315 is pretty much something you can find on the streets now! However if you can get your hands on one and maybe invest $50 in old ram parts you can play GF really well.
I use a 2.1Ghz Celeron processor (yes it's 2013 and I still use a single core processor) , with 2Gb DDR2 ram (& everything else inbuilt) and can play without having to worry about heating issues ON medium graphics!
Because honestly you don't want to game and have to look at the wondering if you reached your 1/2 hour mark lol
Good luck and best wishes