If your password isn't the problem, you might have a certificate error.
To fix this error, follow the steps below: An error 0x80072726 might be due to third-party firewall or antivirus software.
If you still can't sync your email after removing your account and adding it again, you might need to add the account using advanced setup.
For more information, see Add an account using advanced setup. Mail, i Cloud, IMAP, or POP3 account, check the settings in the advanced mailbox settings to make sure they're configured to your email provider's specification.
If your password is incorrect, you'll see a message asking you to update your password. Tip: If you want to change the password for your account with your email provider—for example, Gmail or i Cloud—you'll need to visit the website for your email provider.
See Change your password in Mail for Windows 10 for more information.