The problem is not with the batterybecause I changed it recently. I think that the problem is about the UPS because the battery takes more energy than thresshold it means that UPS transferes more current, so the battery has to charge more than the threshold voltage and become bigger and gets hot. I changed the UPS and the problem solved. Thanks for your attention.