BSOD when closing apps, all apps which uses Nvidia graphics card

Hello, I have a laptop msi gl65 9sfk, with a RTX 2070 gpu in it. My laptop always crashes when closing games, or benchmark applications. Without overclocking, temperatures range from 78°C to 85°C. This occurrence seems to be on Windows only, I installed gnu/linux on my machine and installed the nvidia graphics card driver, then tried to play the game. It didn’t cause any problems. I’ve tried every method on the internet couldn’t fix it. what do I have to do?