Error: pull_from_email_account

I do get a lot of these errors. The domain is setup to use IMAP, and on the one email account defined, I did receive an email. So what exactly is this error refering to, and how can I fix this?

Traceback (most recent call last):
  File "/home/xtcfrappe/frappe-bench/apps/frappe/frappe/utils/", line 104, in execute_job
  File "/home/xtcfrappe/frappe-bench/apps/frappe/frappe/email/doctype/email_account/", line 840, in pull_from_email_account
  File "/home/xtcfrappe/frappe-bench/apps/frappe/frappe/email/doctype/email_account/", line 315, in receive
    emails = email_server.get_messages()
  File "/home/xtcfrappe/frappe-bench/apps/frappe/frappe/email/", line 108, in get_messages
    if not self.connect():
  File "/home/xtcfrappe/frappe-bench/apps/frappe/frappe/email/", line 51, in connect
    return self.connect_imap()
  File "/home/xtcfrappe/frappe-bench/apps/frappe/frappe/email/", line 59, in connect_imap
    self.imap = Timed_IMAP4_SSL(, self.settings.incoming_port, timeout=frappe.conf.get("pop_timeout"))
  File "/home/xtcfrappe/frappe-bench/apps/frappe/frappe/email/", line 570, in __init__
    self._super.__init__(self, *args, **kwargs)
  File "/usr/lib/python3.8/", line 1297, in __init__
    IMAP4.__init__(self, host, port)
  File "/usr/lib/python3.8/", line 198, in __init__, port)
  File "/usr/lib/python3.8/", line 1310, in open, host, port)
  File "/usr/lib/python3.8/", line 303, in open
    self.sock = self._create_socket()
  File "/usr/lib/python3.8/", line 1301, in _create_socket
    return self.ssl_context.wrap_socket(sock,
  File "/usr/lib/python3.8/", line 500, in wrap_socket
    return self.sslsocket_class._create(
  File "/usr/lib/python3.8/", line 1040, in _create
  File "/usr/lib/python3.8/", line 1309, in do_handshake
ssl.SSLEOFError: EOF occurred in violation of protocol (_ssl.c:1131)