I haven't fixed it that is kinda ny question is does anybody lnow how to fix this without buying a bew laptop
Maybe you did not word the title the way you wanted to then, you said "is now fixed".
If you are getting the message about the video card crashing, could be a driver issue, could be overheating, could be a bad video card. Try uninstalling the drivers and install the ones from HP support site again. You can try a clean Windows setup also with clean driver setup, clean up the heatsink and re-install with new thermal paste. See how hot the system gets with HWMonitor.