Question gpu not working in windows but works in games

Jan 24, 2020
So this problem is very weird to me. I have an old laptop (Elitebook 8760w), and there's a Quadro 4000m on it.
About 5 months ago my GPU stopped working, and whenever I tried to install the graphics driver, my display gets frozen for 3-4 seconds, and then it turns black and it gets back up working again for about 10 seconds. This happens for about one minute, after which even the mouse pointer freezes and I have to restart the laptop to get it working again.
But the problem is: when I play games, the gpu works just fine. I just tested it in league, I messed around for about 20 minutes and the gpu was working, but the moment I got out of the game, the display froze again. Does anyone have any idea what I can do? I already gave it to a professional and after about two weeks he said he can not fix it. Any help would be appreciated.