Don’t worry, it’s not mould, and it’s perfectly safe to eat. The blue colour can be caused by reactions between enzymes and amino acids in the garlic. You can read more about why acids in pickling brine can turn garlic blue or green here.  There are a number of ways to help prevent this happening, including: - Boiling the garlic  - Keeping the pickle jar out of direct sunlight - Using filtered water