The main risk factor is cells, you have to source them from reputable manufacturers. After having monitored a few battery fires, we went on to design a casing with multiple features to contain fires, you can check it here: https://www.youtube.com/watch?v=v0NXXfCA2CY
If you're interested, you can order them here https://infinite-battery.com
How much is this mitigated by well-behaved charging circuitry?
I.e. my understanding is most devices are not like the 3s lipos I put in my hobby robots, but instead have integrated charging circuitry that you just give an appropriate voltage to... and that proper charging behavior avoids a lot of the dangerous scenarios with lipos?
I ask because, loosely, the # of battery fires seems like a function in part of: (1) use of good charging logic; (2) cell manufacturing quality; (3) # of cells in the wild. While the growth of 3 probably dominates the improvements to 1 and 2, I'm guessing the number of battery fires has grown but not "exponentially".