When you toggle the switch, the simulator crashes into "Convergence failed!". If you replace the resistor with just a wire, it behaves as-expected and ~infinite current flows.
I played around with it, and if you increase the top voltage to 4.5V it starts to converge again (but the time step becomes 76ps).
https://user-images.githubusercontent.com/6709544/225696273-3fe00460-3c9f-42c7-8669-a7db667ce461.mp4
Minimal circuit (resistor value doesn't matter, nonexistence of the gate resistor also doesn't):
When you toggle the switch, the simulator crashes into "Convergence failed!". If you replace the resistor with just a wire, it behaves as-expected and ~infinite current flows.
I played around with it, and if you increase the top voltage to 4.5V it starts to converge again (but the time step becomes 76ps).