I know little on this subject and what I do "know" is probably wrong. What I can say is that most forms of corrosion, regardless of the cause are harmful to firearms and their accessories. An exception would be protective bluing of steel and anodizing of aluminum which are perhaps a form of controlled "corrosion", at least in a general or non-technical sense, compared to rust on steel or iron or aluminum oxidation.
Corrosion of electrical connections is a huge, often overlooked problem until too late. An example is corrosion of electrical connections in the battery compartment of high grade optics and tactical lights due to use of alkaline batteries or "regular" carbon-zinc batteries and not checking or replacing them regularly. Switching to lithium batteries, while more costly in the short run, not only largely eliminates the issue, but also provides longer and more consistent performance up until they give up the ghost.
I've come to the realization that for anything that needs to work with 100% reliability and anything that is expensive to replace, lithium batteries are no longer an option, they are a necessity.