I can't add my Microsoft Exchange account to synchronise the calendar to my Mac iCloud calendar. I removed it from settings because it would randomly log out every now and then, prompting me to enter my login credentials on both my iPhone and Mac. I figured removing and re-adding it might help. However, I can't add it back.
Every time I go to settings or the calendar app to add it, I get the same error after entering the login credentials and my 2FA code. I've tried to put a screenshot of the error in attachment, but the image isn't uploading. (a bug while reporting a bug) The error reads "com.apple.accounts.fout3". "Fout" is Dutch for "error".
Does anybody know how to fix this? I need to have it integrated to be able to have an integrated workflow and not miss any appointments.
Macbook Air M1 27.0.1
iPhone 13 iOS 27.0.1
Lockdown mode enabled on both (but the problem was there before enabling it)