A replacement from the white goods bins would probably cover law suppression requirements such as this.
https://www.ebay.co.uk/itm/HOOVER-vh...AAAOSw~2hbyLye
But like David have used an X type capacitor without any further drama on a 1970s Singer foot pedal that did exactly the same thing after a length of storage.