Once the electrical part in question has been thoroughly cleaned of ALL corrosion, coat all parts that might develop corrosion with corn syrup. You can use a artist’s paint brush. The syrup will dry producing a corrosive protection coating that can be easily cleaned off with water, should the need arise.
You could also coat the parts with anti-seize lubricant, but it is hard to clean up much less clean out of your clothes. This can be found in many hardware and auto parts stores.
Or use dielectric compound, a clear grease like substance that is used to seal electrical parts, and be found at your local auto parts store.
There are also felt rings that are used on battery terminals to stop corrosion. If required, these can be tied to the electrical part with a bit of wire or cable ties. Also available at your auto parts store.