i just recieve a massage box that says "A simulation error has occurred. Would you like to run the Convergence Assistant to attempt to resolve this problem automatically?" and this only hppens when i connect the capacitor
There will be energy stored in the capacitor.
As soon as the relays contacts close, there will be a quick release of this energy.
This might be one of the problems.