Lithium battery electrolyte corrosion