I think you are using the wrong Rosin solder.......
Oops, as I was typing this, you were moving in the same direction.
This is a problem I eliminated a long time ago by finding a good solder and sticking to it.
There is Rosin, Rosin, and more Rosin.....
There are over 20 different classifications. They range from almost totally non corrosive to very corrosive.
The general classifications are:
R: which is pure rosin, no activation, very mild and noncorrosive at anything under soldering temps.
WW: Water White, which is the purest rosin. Not much difference from R.
RMA: Rosin Mildly Activated. Usually no halides, can be considered noncorrosive.
RA: Rosin Activated. This one is for tough soldering jobs, and can cause corrosion.
Then you get into the others.
OA: Organic Acid, very corrosive, water cleanable.
SA: Synthetically Activated, corrosive, cleanable with organic solvents like alcohol.
WS: Water Soluble Very Corrosive.
SRA: Superactivated Rosin. Corrosive, somewhere along the lines of WS.
IA: Inorganic Acid. Probably the most corrosive of all the Rosin fluxes. Actually had hydrochloric or phosphoric acid in it.
Almost all the solder I use is RMA.
But the solder its self that I use has some copper in it, so it tends to adsorb any loose active material when I am doing the soldering.
I do have some R solder for critical applications, but I seldom use it.
If RA solder is used, it can cause corrosion.
Kester 44, probably the most widely used electronics solder out there, is RA. If you use that, you will get corrosion under certain circumstances.
I used it briefly when I was just starting out, and it ate solder tips pretty fast.
I was working with an old electronics tech, and commented that he was not using it, and he told me that he was tired of replacing tips and having problems with voltage leakage in close joints, so he had gone to a better solder.
I found the Savabit multicore, and never looked back.
It has been so long since I worried about that, I had forgotten about corrosion with 44. I just knew I always turned it down when someone offered me some, but I had forgotten why.
In over 30 years of soldering, I never had any corrosion. But it was due to the fact that I always used the correct solder even if I had forgotten why.