The other day I watched Doomsday Preppers, in this episode they showed someone who was concerned about earthquakes. When they showed his storage area, there were many glass jars sitting on shelves that were unprotected. In an earthquake, these would all have fallen to the ground.
I live in earthquake country and also store some foods in glass jars. To protect mine I do one of two things. I store mason jars in their original boxes and place them in areas where they are not likely to fall. Shelves on which glass jars are stored have a piece of one by four secured to the front edge of the shelves.
This provides a degree of protection to the preps. If you consider earthquakes a problem, remember to keep heavy items low to the ground, store as much as you can in less breakable containers, and protect the breakable items.