With petrol cars it is usually fuel line erosion/problem under the bonnet, fuel pump keeps pumping to keep up with the flow, equals fire.
Must be near 50 years back, driving on the M4 in London, in my Ford Granada V6, could smell petrol, pulled over, lifted the hood to find the brass hose connector that is pressed into the carb had come out ......????
The engine V was full of petrol, I was expecting the worst, it was steaming, luckily I had rag in the boot to try and soke it up before it ignited, I was lucky, but a dodgy moment, indeed. Undid the hose, whacked the fitting back in to get me home... ????
Now if it were an EV battery problem, it would be, just walk away....????