Solid state AC controls and capacitors do not play well. The fast rise time and non-linear current draw of solid state switching controls for things like SSRs and motor drives creates harmonics that can cause capacitors to over heat and swell. Eventually they can sometimes explode. Looks like you have discovered this the hard way...
__________________
** All I every really wanted to be, was... A LUMBERJACK!.**