This is a general issue with Exchange Online accounts because Microsoft enforced a policy that disables Basic Authentication.
Users that use the Exchange Account option from the accounts setup screen will receive this error (or something very similar).
https://learn.microsoft.com/en-gb/exchange/clients-and-mobile-in-exchange-online/deprecation-of-basic-authentication-exchange-online
https://techcommunity.microsoft.com/t5/exchange-team-blog/basic-authentication-deprecation-in-exchange-online-september/ba-p/3609437
In January 2023 Microsoft will shut down this way of authentication and it would be impossible for the users to log in from the Aqua Mail Exchange Account option with Exchange Online.
Logging into Exchange Online should be done through the "Office365 option", where it is possible to use Modern Authentication instead of Basic.
Local servers (not online) should not have this issue.