Medias effect on Stability

Curious to learn more about how different medias and their Ph effect the stability of product, had a sauce run turn into a big jar of shatter recently and not really sure why