All of the questions haven't been answered.
And I haven't found detailed specifications of the Lenovo Y5010p laptop, so there will be some guesswork required.
The laptop has TWO video cards installed in SLI configuration?
If so, remove one video card and run the remaining card in non-SLI mode.
If the laptop runs OK with the first video card removed, then the first removed video card may be faulty.
If the laptop still crashes with the first video card removed, then the second video card may be faulty; then -
Reinstall the first video card and remove the second video card.
If the laptop runs OK with the second video card removed, then the second removed video card may be faulty.
If the laptop still crashes with the second video card removed, then the second and first video cards may both be faulty; and/or, there may be a motherboard issue (also).
Try both videos cards (one at a time, and then both in SLI configuration) in another laptop.
If the other laptop works OK, then the original laptop motherboard may be faulty.
If the other laptop crashes with any combination of video cards installed, then the two videos card seem to be faulty, AND the original laptop motherboard may be faulty.
The laptop has ONE video card installed?
If so, remove that video card and try another known working video card; and/or try the laptop video card in another laptop.
If the laptop doesn't crash with another video card installed, and/or if the laptop video card in another laptop causes crashes, then the original laptop video card may be faulty.
If the laptop still crashes with another video card installed, and/or if the laptop video card in another laptop doesn't cause the other laptop to crash, then the original laptop may have a faulty motherboard.