The reason for "Authentication Failure. Please check your SMTP credentials." is mostly due to the credentials being not right. Ensure if the right credentials are used. As per the error, the credentials need to be correct for the configuration.
If the credentials are correct and you are still facing the issue, then try to generate a new API key on your Sengrid account, and pass the new credentials in SMTP server settings. Refer to this articleto know more.
If you are using Google suite, then please record this as a Google block:
1. Add IMAP access to the account in Gmail Settings
2. Turn on Access Less Secure Apps
1. Use an app password for connecting with the custom SMTP.
2. Ensure that the from address in your master template is identical to the SMTP username (as informed in an earlier response)
3. Try TLS-587 instead of SSL-465 in case of socket timeouts.