I've extended the [short] internal red/black battery wires with additional 12in of 18AWG stranded wire (heater cord) to the larger 18Ah pack now sitting next to the UPS.
With batteries external to the UPS, you should install a fuse at the battery pack itself, suitably rated for the wire size in use. 10A for 18AWG. I would place the fuse at the series connection between the two batteries. Keep in mind that a fault internal to the UPS, such as a shorted inverter transistor, can draw considerable current and from my experience the fuses internal to the UPS don't always blow as the fault current may not be sufficient, especially as the batteries age, but would still be plenty enough to make 18 AWG wire go up in smoke in an instant!!!
Ideally, I would use larger wire. The internal wiring in these UPS is normally 10 AWG. Keep in mind as well that the added voltage drop due to the longer, smaller wire will cause the UPS to reach it end-of-discharge voltage sooner, resulting in reduced backup time.
FYI: The UPS seems to eat packs every 3.25 years. This latest was my 4th in 13 years!
Also, the UPS seems have a case temp. of 45°C which I think may be the cause of their early demise.
Temperature would have a part to play, definitely. It is said that every 5 degrees above 25 (actual battery temperature, not the case temp of the UPS) reduces the life of the batteries by approx half.
However, the charging methodology also plays a significant role. Elevated float voltage especially if the float voltage is applied all the time, in combination with the batteries being at a relatively high temperature, will definitely lead to their early demise.
A lot of the better UPS apply a temperature compensation factor to the float voltage, and will also cease charging entirely after the batteries have been on float charge for a prescribed amount of time. UPS using such a charging method in my experience have no trouble getting 5 or more years out of a set of batteries.
The only difference having the larger 18Ah pack I see is:
a. tolerating a lower charging rate to the larger pack, and
Charging rate will be A LOT slower! APC specifies a recharge time of
16 hours for that model of UPS. It only has a 9 watt charger. It's going to take more than 32 hours to fully recharge those larger batteries from a full discharge!!!
One other consideration depending on your use case, most UPS's use heatsinks that are solid chunks of aluminum with no fins. They rely on thermal mass rather than convection and this works because the battery provides an upper limit on the amount of energy that can be supplied. At low load this shouldn't be an issue but if you are loading it up beyond about 50% of rated capacity you should consider adding better heatsinks or a fan.
I do believe that is the case with this particular model, and most other smaller UPS in a plastic case without the built-in ability to connect external battery packs. Normally the batteries would run out of juice before the chunks of aluminum got excessively hot, but with larger batteries you might have long enough run time to actually heat up the inverter transistors to the point of failure.
Adding a fan would not be a bad idea. You could set it up so it only comes on when the UPS is on batteries.
Ultimately though, I would just look for a second-hand UPS that has proper support for external battery packs. There's a lot floating around on auction sites for cheap that just need a new set of batteries. For example, any of the APC SmartUPS models with "XL" in the model number have a connector for external battery packs. Eaton Powerware 9125 or 9130, those are very good UPS. You can score any of those for under $100 if you look around. I myself have a Powerware 9125, 1500VA, with a set of 4 77Ah batteries now 6 years old and still going strong, get HOURS of backup time even with the gaming PC going full tilt.