I was planning on making a voltage controlled resistor using a power MOSFET in order to load one 12V lead acid battery. I tried implementing the circuit below; everything was going well for a few seconds until the power supply suddenly switched off only for me to find out that the MOSFET was completely shorted.
simulate this circuit – Schematic created using CircuitLab
The MOSFET drain was attached to a heatsink by a screw and some thermal paste; in addition, a 12V fan was supplied through the same 12V supply and was cooling off the MOSFET. The MOSFET wasn't anywhere near its limit temperature when I checked it. The DAC output voltage was set to 2.39V in order to obtain approximately 6A of current as per the VGS to ID curves. I do realize that this open loop system is unreliable and subject to the variations of temperature, which is why I plan on making a feedback loop using a current sensor in the future. My question is, why did this happen?
Note: I have not surpassed any maximum ratings here as far as I know.