I recently have the same problem with upgrade from 8.6 to 8.8.15. The solution was to remove the imap account and add it again.
That was the first test I did. Did not solve the issue.
I think I found a solution but not for port 993. I have to use 7993 instead for imaps and that seems to be working.
This is regardless if I have proxy configured or not.