Correlation between Electronic Configuration and Magnetic Stability in Dysprosium Single Atom Magnets