One thing to try is to remove/replace the RAM modules. BUT, that version of laptop has a history of failing graphics chips on the mobo. HP did eventually admit the problem some years ago, and replaced the mobo's free of charge . That is no longer available - out of time. There are some bizarre cures on the internet which involve reflowing the solder on the mobo by cooking it. It is very definitely a last ditch thing to try when everything else has failed, and may not work for long. It also involves a complete strip of the laptop. I tried it on one dead HP, and it is working at the moment.
Best Black Friday Deals 2017