$1/8$-BPS couplings and exceptional automorphic functions