I had the same problem with one of our cabinets. I was told by ABB that if your unit(3HAC 5393-2) is before revision 10, than you must replace the entire unit and not just the battery. By unit I mean what you have pictured, sorry I don't know the actual name. I swapped our unit and got rid of the "Battery at end of life alarm".
DSQC508-3HAC 5393-2/09 found on the backside of the unit, you need number after the slash to be 10 or greater in order to only swap battery.