May I know how you classified the capacitor as a failed one? Pardon the question, I'm only curious on what led you to believe that it had in fact failed. Maybe it's the switch and not the cap? Just saying.
For mains use, agencies and other governing bodies insist that you only use X-Class Class 1 and Class 2 caps, no exemptions.
Your application requires what we call "spark quencher", if you'll notice the type and class of the capacitor in your link, it is a Type-Q which means it acts like an R-C snubber, the R is a resistor that lowers the Q to somehow suppress L-C ringing.
However, for general, non-critical applications, a single x-class or y-class cap with the suitable capacitance will successfully work as a spark quencher.
If you will shop locally, I suggest you bring a magnifying glass so you can read if it is indeed an x-class cap.
Good luck.