Authentication/connection issues with a Outlook email

I have a hotmail.com email address (Outlook.com account) that I’ve been using with Mailspring for a while. For the past few weeks, the account can’t sync and I keep needing to Reconnect and enter the password again (I’m using an App Password

After I re-enter the password, the email syncs fine and it’s working fine. But after a while, it stops syncing and connecting with the account and the only fix seems to be re-entering a password again.

I tried rebuilding the cache. Tried removing and then adding the account. Nothing helps.

Here’s the log:

Mailspring Version: 1.10.5-1ce06f18
Platform: win32
Account State: invalid
Account Provider: outlook
IMAP Server: imap-mail.outlook.com
SMTP Server: smtp-mail.outlook.com
--------------------------------------------
12700 [2022-08-17 17:52:45.347] [metadata] [info] Will retry in 3 sec.
12700 [2022-08-17 17:52:45.676] [background] [info] Marking all folders as `busy`
12700 [2022-08-17 17:52:45.678] [background] [info] Syncing folder list...
12700 [2022-08-17 17:52:46.698] [background] [critical] 
***
*** Mailspring Sync 
*** An exception occurred during program execution: 
*** {"debuginfo":"syncFoldersAndLabels - fetchAllFolders","key":"ErrorAuthentication","retryable":false,"what":"Unknown exception"}
***

12700 [2022-08-17 17:52:46.698] [background] [critical] *** Stack trace (line numbers are approximate):
*** 519  SyncWorker::syncFoldersAndLabels()
*** 180  runBackgroundSyncWorker()
*** 692  ::operator()
*** 210  _Pad::_Call_func()
***

10320 [2022-08-17 17:52:48.044] [main] [info] Identity created at 1569192889 - using ID Schema 1
10320 [2022-08-17 17:52:48.045] [main] [info] ------------- Starting Sync (XXXXXXX@hotmail.com) ---------------
10320 [2022-08-17 17:52:48.049] [metadata] [info] Metadata delta stream starting...
10320 [2022-08-17 17:52:48.591] [metadata] [info] Metadata delta stream closed.
10320 [2022-08-17 17:52:48.707] [metadata] [info] Will retry in 3 sec.
10320 [2022-08-17 17:52:49.056] [background] [info] Marking all folders as `busy`
10320 [2022-08-17 17:52:49.059] [background] [info] Syncing folder list...
10320 [2022-08-17 17:52:50.527] [background] [critical] 
***
*** Mailspring Sync 
*** An exception occurred during program execution: 
*** {"debuginfo":"syncFoldersAndLabels - fetchAllFolders","key":"ErrorAuthentication","retryable":false,"what":"Unknown exception"}
***

10320 [2022-08-17 17:52:50.527] [background] [critical] *** Stack trace (line numbers are approximate):
*** 519  SyncWorker::syncFoldersAndLabels()
*** 180  runBackgroundSyncWorker()
*** 692  ::operator()
*** 210  _Pad::_Call_func()
***

10396 [2022-08-17 17:52:52.167] [main] [info] Identity created at 1569192889 - using ID Schema 1
10396 [2022-08-17 17:52:52.168] [main] [info] ------------- Starting Sync (XXXXXX@hotmail.com) ---------------
10396 [2022-08-17 17:52:52.180] [metadata] [info] Metadata delta stream starting...
10396 [2022-08-17 17:52:52.809] [metadata] [info] Metadata delta stream closed.
10396 [2022-08-17 17:52:52.941] [metadata] [info] Will retry in 3 sec.
10396 [2022-08-17 17:52:53.182] [background] [info] Marking all folders as `busy`
10396 [2022-08-17 17:52:53.183] [background] [info] Syncing folder list...
10396 [2022-08-17 17:52:54.830] [background] [critical] 
***
*** Mailspring Sync 
*** An exception occurred during program execution: 
*** {"debuginfo":"syncFoldersAndLabels - fetchAllFolders","key":"ErrorAuthentication","retryable":false,"what":"Unknown exception"}
***

10396 [2022-08-17 17:52:54.830] [background] [critical] *** Stack trace (line numbers are approximate):
*** 519  SyncWorker::syncFoldersAndLabels()
*** 180  runBackgroundSyncWorker()
*** 692  ::operator()
*** 210  _Pad::_Call_func()
***

OS and Version: Windows 10 Pro
Installation Method: Installer
Mailspring Version: 1.10.5-1ce06f18