I use several refurbished APC UPS’, and also use third-party batteries (from the company that refurbishes the UPS’) and it’s been trouble-free for like 10 years. I replace batteries, it seems, every 4-5 years and only when the self-test says to replace it.
Never had a problem with data loss due to the UPS failure.