I have a somewhat similar issue that could be related to this. It’s not about a disappearing account after an app password change, but rather about a deleted account that can’t quite be deleted. But the overall symptoms appear very similar and as with OP I feel the need to find a way to fully purge all mail data in some way (Unremovable Mail Fragments: Purge Nextcloud Mail and/or Specific Mail Accounts)