Unable to add Google account (G Suite) to Mail.app

While adding a new Google account (G Suite account) to Mail.app (Mac OS High Sierra, 10.13.6), I am able to authenticate successfully but the account is never added to Mail.app. It remains stuck at the screen shown below:

After successful authentication

Appreciate any help on this issue.


I found a solution myself. Go to KeyChain --> login --> All Items and search for "google" keys. Deleted all and then tried adding the account once again when it worked.