The foot controller has a rheostat, contactor, and suppression capacitor. The capacitor fails, with lots of smoke.
Simple fix, buy a 0.1uF 250VAC Class Y capacitor, unscrew the old one, fit the new one.
Not everyone whose controller fails is going to be a hackaday.io regular, so I've written it up in greater detail here on my Blogger blog.