Those switches are low voltage but are used in a square wave circuit so they are subject to a higher di/dt (high current change over small period of time). You want to use at least a 50V cap in this location to overcome this high current spike. I carry the 50V version but am considering changing to 100V versions.
You can find the 50V ceramic disc type here:
https://www.greatplainselectronics.com/proddetail.asp?prod=CCD-0.047uF-50V
Can also use the multilayer style ceramic caps "chicklets" in that rating that would work equally well but I don't carry that size - yet.