In fact, I think that the problem is not only with the email node because the error survives new deploys and page refreshes.
It mainly happens when you hit a connection timeout or an error during authentication or login.
Is there a way to export Node-Red logs to share them?