Automorphy, geometry, and symmetries of BPS states