I understand that simulation is stopped due to singularity in the solution.
This error is due to usage of RMS block that belongs to “DSP System Toolbox / Statistics” which gives the positive portion of the signal that has value zero at start of simulation which creates an issue since a division block is also used in the model.
Replace this with RMS block that belongs to “Simscape / Electrical / Specialized Power Systems / Sensors and Measurements” which computes the true root mean square (RMS) value of the input signal.
You may refer the link below for more information regarding this block:
I am attaching the Simulink model by replacing the correct RMS block which runs successfully.