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