There are literally billions of lithium batteries in use and you have a better chance of being struck by lightning that having a lithium battery fire. Your concern about the battery life isn’t realistic either. These batteries last for many years when the charge is limited to less than 100% and can be replaced when they finally wear out. If you run a UPS you’ll eventually need to replace those batteries too and your backup time will be usually be measured in minutes rather than hours.
As far as the ram limitation is concerned, it’s plenty for a supported Home Assistant installation and that’s exactly what this post is about.
With billions of batteries in use there are going to be plenty of complaints about issues. My specific experience is with an ancient Dell Venue convertible that’s been in regular use for 9 years with charge limiting applied that entire time. The battery still looks new and for what it’s worth, Dell’s UEFI reports it’s in excellent condition. This while the rest of the system including the charging port is completely worn out and at the end of its useful life. That computer is running Debian 12, HA and Frigate with only 4gb of ram and (outside the physical problems of a very old, heavily used laptop) is working fine.
Are the computers you have bought from Aliexpress UL listed, or do they have a European safety listing? I’ve read reports of some equipment and appliances sold by Chinese companies on various sites (including Amazon) causing fires. Not that those mean that much though. Even my UL listed Cyberpower UPS has had reports of internal shorts and fires.