HIGM is primarily caused by genetic mutations. The most common form is X-linked Hyper IgM Syndrome, caused by mutations in the CD40 ligand (CD40L) gene on the X chromosome. Other forms can be autosomal recessive and involve mutations in genes like AID (Activation-Induced Cytidine Deaminase) or UNG (Uracil-DNA Glycosylase).