The problem is that the 4011 doesn't act as a switch. With a slow voltage change it acts as an amplifier and burns out the mosfet. I asked here once before and someone recommended a better gate but when I tried to order it a couple of years ago Durring the IC shortage, it was unavailable. Now I would like to order it again but I can't remember what the number was! Can some help please?

