I'm simulating half bridge resonant converter. It works fine when I use diode in rectifier circuit but as soon as I use MOSFET it shows the state discontinuity error. I tried to simulate separately a center tapped rectifier which was working fine with diode but as soon as use MOSFET it shows the same error. I'm giving complementary gate pulse to both the signal. Where is the error and what shall I do to resolve this error?