The following error appears when trying to log in to Microsoft 365 apps.
To resolve this error: Navigate to the “Accounts” section of the Settings app → Access work or school. Click the account you want to unlink and press the “Disconnect” button. Reboot if asked. Add the account again via an office 365 application.
If there is no account linked, add the account.