Not nearly as much to worry about as with a gasoline car.
BEV fires are far less common than gasoline fires.
When BEV fires do happen, it is most often while charging, so no one is in the vehicle.
Finally, when BEV fires occur following an accident, they are slow developing, giving occupants lots of time to escape before fire will have progressed very far.
I know of only two events where people died in a Tesla fire. One occurred when a teenager crashed a Model S at over 100 miles per hour in a residential street and the other was the idiot who allegedly tricked his car to drive itself with him in the back seat, crashing into a tree and trapping both occupants inside. Neither of those scenarios, I suspect, is likely to happen to you.