How to protect against a short circuit fail in 12VDC X capacitor?
You should not need any protection for X caps, they are designed not to short.  If you have a concern, use an X1 instead of the more common X2.  They are made to an even higher standard.
However, using a fuse will protect from other failures that are much more likely.