I have never taken a master cylinder switch apart but, is it possible there is an internal failure of some type? I am using a Harley Davidson brake light switch with no problems. Brake fluid is silicone.
Here's some reading about the HD brake light switch that might help.
https://www.fordbarn.com/forum/showt...k+light+switch
This is crazy idea but, could it be the brake fluid?