HMBS and autoimmune pancreatitis: AIP is specifically associated with mutations in the HMBS gene (hydroxymethylbilane synthase), leading to reduced enzyme activity and the accumulation of toxic precursors, primarily delta-aminolevulinic acid (ALA) and porphobilinogen (PBG) (Souza et al., 2021).