Well, it is something known about the protection against the breackdown overcurrent peaks. Here I have dispensed with it discharge to Simulide of non-functionals elements at the recommendation of Arcachofo, because these and the reactives components produce so much delay that the 50Hz clock does not arrive to run at its rated frequency, This was a big problem in the development that you can see in the testers section (T1452 SLOW LED WITH TRANSFORMER, Adjustement the Reactive step). Download the project and play with its features making the changes you want.
But it is done for you, adjusting a little the Simulation/reactive Step.