Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
\$\begingroup\$Why do you apply 400V to a gate-source of an NMOS? The pulse generator is already source-referenced. Change the on-voltage to something between 10-15V.\$\endgroup\$
The circuit isn't stable. There are a few things that could improve stability.
Reference the voltage source attached to the MOSFET gate from ground instead of the diode
Install parasitics on all passives. Real life components have resistance capacitance and inductance. The capacitor should have series resistance. The inductor should have series resistance. You can right click on the components and select from a list of real life components where you can put in the parasitics yourself.