Repetitive Error every 3 minutes - pull_from_email_account

I’ve recently setup a local instance of ERPNext and have synced my mail account via imap. But I have a recurring error log that pops up -

Traceback (most recent call last):
File “/home/frappe/frappe-bench/apps/frappe/frappe/email/receive.py”, line 120, in get_messages
uid_list = email_list = self.get_new_mails()
File “/home/frappe/frappe-bench/apps/frappe/frappe/email/receive.py”, line 185, in get_new_mails
response, message = self.imap.uid(‘search’, None, self.settings.email_sync_rule)
File “/usr/local/lib/python3.7/imaplib.py”, line 879, in uid
typ, dat = self._simple_command(name, command, *args)
File “/usr/local/lib/python3.7/imaplib.py”, line 1196, in _simple_command
return self._command_complete(name, self._command(name, *args))
File “/usr/local/lib/python3.7/imaplib.py”, line 1027, in _command_complete
raise self.error(‘%s command error: %s %s’ % (name, typ, data))
imaplib.IMAP4.error: UID command error: BAD [b’Could not parse command’]

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File “/home/frappe/frappe-bench/apps/frappe/frappe/utils/background_jobs.py”, line 100, in execute_job
method(**kwargs)
File “/home/frappe/frappe-bench/apps/frappe/frappe/email/doctype/email_account/email_account.py”, line 844, in pull_from_email_account
email_account.receive()
File “/home/frappe/frappe-bench/apps/frappe/frappe/email/doctype/email_account/email_account.py”, line 317, in receive
emails = email_server.get_messages()
File “/home/frappe/frappe-bench/apps/frappe/frappe/email/receive.py”, line 153, in get_messages
if self.has_login_limit_exceeded(e):
File “/home/frappe/frappe-bench/apps/frappe/frappe/email/receive.py”, line 297, in has_login_limit_exceeded
return “-ERR Exceeded the login limit” in strip(cstr(e.message))
AttributeError: ‘error’ object has no attribute ‘message’

Any help in resolving this error?
I’m fairly new to ERPNext.

I get the same error too!
And noticed that incoming emails to erpnext doesn’t have message body. Only sent emails from erp has it. Please help!!!