Well then, the problem is the fire, not whether the door can be opened or not.
Considering you couldn’t open the door, and those Battery fires are almost explosive you have a recipe for disaster.
Lithium Battery fires have caused all kinds of problems, but considering you are locked into a tiny space with a roaring chemical fire is the definition of a death trap.