Proprietary NVIDIA drivers on linux

I have a problem: I’m using Debian 13 and I have GPU 1: NVIDIA GeForce MX350 [Discrete] and GPU 2: Intel Iris Xe Graphics @ 1.30 GHz [Integrated]. I’m using the Nouveau drivers by default. I tried to install the proprietary NVIDIA drivers for better performance, but it didn’t work well. After installing the proprietary NVIDIA drivers, the device temp increased and the laptop fan sped up, and then the device shut down.