I am no expert but I suspect corrosion. If so you can simply coat the connections in grease to keep the air off that should eliminate most of the corrosion issues since air is necessary for oxidation, well oxygen.
Are the batteries in the same space?
I ask because batteries produce corrosive gasses when charging. If so, the real fix is ventilation but the grease trick will work, too.
Tom