The safety timer is expiring, likely because during "charge while on" the battery is not able to charge at a full rate, thus it does not get fully charged within the expected time frame. The safety timer is important to prevent overcharging in cases where something is wrong with the battery, preventing proper voltage/current cutoff (it is the safety backup of last resort).
Does it charge at the full rate if the charger is at least 3A?