I had the same
I had the same corrosion, and like others, I cut off the bottom of the mast and made a riser to raise the step. This way nothing else changes. If you have a keel stepped mast, the corrosion comes from water in the bilge, and dissimilar metals.