I don't think that it's fair to compare fires of lithium batteries and those of typical fossil fuels. They happen for different reasons and different conditions.
InsideEV's have done an article on it, which obviously advocates in favor of EV's.
Op-Ed: Top 10 Causes of Automobile Fires - EV vs ICE
One of the main sources of fires on modern ICE vehicles is actually the 12V battery as car design has evolved to account for leaky pipes. The above pictures of a burned Range Rover / Bus seem to indicate that this is where the fire started. Ironically, fires caused by 12V batteries can be caused by hydrogen build up in the engine compartment.
An ICE parked in a garage is less likely to spontaneously combust than an EV that is charging.
Every car crash is also different, so some crashes will be more survivable in an EV than in an ICE and vice versa.
It's also difficult to come to definitive conclusions without decades of EV experience. Small data sets tend to be unreliable indicators.