If your modified gas engine seems to work, you are quite safe. If your modified Tesla seems to work, it might well explode the next second..
I think you are overstating your case. I have seen cars on fire by the side of the road...although it is possible it started with an electrical fault.
I believe that it's not that rare for a model of car I own to have a leak develop in the fuel lines and drip fuel onto a hot manifold and start a fire.
You're making the classic mistake of assuming lithium-ion batteries contain metallic lithium --- it's called lithium-ion for a reason. Primary lithium cells, which are basically never used for EVs, do contain metallic lithium; but lion cells contain lithium salts and a dissolved solution of lithium ions in the electrolyte.
The electrolyte is a flammable organic solvent, but not more so than petrol. Lion batteries catch fire because the massive energy they store is released when damaged, and that ignites the electrolyte.
Battery fires can be hard to put out, but it's a solid component designed to keep the fire from spreading outside of it. If gasoline reignites you better hope you didn't get any on you.
Lithium batteries typically don't contain acid.