In 1995 my gun shop burned to the ground.
It contained well over 20,000 rounds of loaded ammo, about a dozen cans of powder, many thousands of primers and seven (unloaded) guns.
It got very interesting.
Almost all the ammo was in GI 50 cal metal ammo cans.
Which is the way you should store your ammo whether you have 20 boxes or 2000 boxes.
Interesting things happened with the ammo cans.
One can contained AK ammo, which all exploded, beating the can badly but the lid held and there wasn't a hole in the can.
Other cans had large holes torn in them.
The theory that the loaded ammo just harmlessly pops?
Don't bet your life on it. I found many bullet holes in things that weren't totally burned. In some cases the bullet had enough power to go through a number of things, after going through a steel ammo can. The Red circles point out some of the bullet holes in these cans. Plus most cans had holes blown in them.
(got to get a better picture)
This can is very interesting. It was about 15 feet from the fire and contained 9mm ammo in plastic boxes. Somehow only less than a box of rounds exploded. As you can see this handful of 9mm didn't just pop harmlessly but there's no chain reaction. Interestingly the ammo that blew was near the side away from the fire.
I later shot all the remaining rounds.
Gun powder doesn't explode if left in the original container. The gun powder cans just popped their tops or bottoms. The exploded cans are WD40 and Black Powder. There was no doubt when they cooked off, they do EXPLODE.
Note the bullet hole in the center can.
BTW, I wouldn't let the fireman near this fire until it was burned out but in this part of the country if fireman didn't fight every house fire because there was guns and ammo in the house, they wouldn't be fighting many fires.