LFP cells are totally sealed, so they don’t off gas in normal operations. Lead acid batteries vent H2 hydrogen gas and H2S (hydrogen sulfide). H2S is corrosive, while H2 is highly explosive and flammable.
I can’t think of a reason why an inverter or other electrical
components couldn’t be mounted close to LFP batteries, other than something metallic (and electrically conductive) breaking free of its mount and falling down on the battery and shorting terminals.