While Nextcloud is not a mail server, it includes a webmail client that can connect to IMAP servers such as Dovecot. The recent update of the Mail client to version 3.2.0, which was applied for me when I applied the latest Nextcloud 26 patches appears to have a bug that doesn't like Dovecot.

The workaround is to downgrade Mail back to version 3.1.1 which isn't supposed to be supported but thanks to Vasyugan on the Nextcloud forum it's a simple fix, and I'll post that shortly. Or read the full thread here: Nextcloud Forum

Update: The problem was finally fixed with Mail 3.2.2.