Both - typically it’s thermal runaway, which causes, and is exacerbated by swelling. And another good reason to use compression pads between cells, since it will thermally isolate them to some degree. This is a big deal in vehicle applications where you don’t want a single hot cell to destroy...