The iron battery you are thinking of is a lithium battery. It is not the lithium that is a fire risk; lithium ion batteries do not contain metallic lithium. In an LFP battery the phosphate-oxide bond is much more stable and not subject to thermal runaway compared with e.g. cobalt-oxide.