Unfortunately, the majority of cases I remember were due to flaws in the electrical system:
https://www.autosafety.org/ford-ignition-switch-fires/
https://www.autosafety.org/category/vehicle_fires/ford_cruis...
https://www.autonews.com/regulation-safety/ford-recalls-f-15...
https://www.usatoday.com/story/money/cars/2014/08/07/gm-reca...
In other words, the (relatively small) battery in ICE vehicles provided the initial energy to start those fires, and not the fuel itself. I suppose one could say that a safety advantage of ICE vehicles when parked and off is that even a fuel leak requires a source of ignition to cause a fire (also, diesel is very difficult to actually ignite), whereas with an EV there is always a huge source of electrical energy available and a lot more components which are always supplied with power.
My guess is that once they become as common as ICE, EVs will continue to catch fire at roughly the same rate if not more.