Yes, a bad battery can cause the charger to overcharge. The only feedback the charger gets from the battery is how much current it is drawing, so a damaged battery can keep telling the charger it needs more charging.
John & Kathy
2014 Grand Design Reflection 303RLS
2014 F250 SBCC 6.2L 3.73