Connect an appropriate RC snubber circuit (for example, 100 Ω and 22 pF) across the flyback diode if needed, particularly if the transformer leakage inductance is high. Also, choose a flyback diode with current rating that aligns with the maximum peak secondary winding current of NPS*ISW-...