The lid on your mason jar bulged due to the buildup of carbon dioxide gas produced during fermentation. The jar is likely still safe to use, but inspect it carefully for cracks or damage.
During fermentation, microorganisms like bacteria and yeast consume sugars and starches in your ingredients. A byproduct of this process is carbon dioxide (CO2) gas. In a closed mason jar, this gas builds up pressure. The lid, being the weakest point, will often bulge outwards to accommodate the increased pressure. This is a normal occurrence, especially during active fermentation. However, excessive pressure can potentially weaken or even crack the glass. After fermentation, carefully examine the jar for any signs of damage, such as hairline cracks, chips, or other imperfections. If the jar appears intact and the lid still seals properly, it is generally safe to reuse. If you are concerned, you can always use the jar for non-fermenting purposes.
To prevent excessive pressure buildup, consider using an airlock system specifically designed for fermentation. These allow CO2 to escape while preventing unwanted contaminants from entering the jar. Alternatively, 'burp' your jars daily by briefly opening them to release the pressure, then resealing.