Hi,
Thank you for posting your query.
Kindly follow the steps provided below to resolve your issue.
Create the following registry key to force Outlook to use a newer authentication method for web services, such as EWS and Autodiscover. We recommend that users force Outlook to use Modern Authentication.
Exit Outlook.
Start Registry Editor by using one of the following procedures, as appropriate for your version of Windows:
Windows 10, Windows 8.1, and Windows 8: Press Windows Key + R to open a Run dialog box. Type regedit.exe, and then press Enter.
Windows 7: Click Start, type regedit.exe in the search box, and then press Enter.
In Registry Editor, locate and click the following registry subkey:
ConsoleCopy
HKEY_CURRENT_USER\Software\Microsoft\Exchange
On the Edit menu, point to New, and then click DWORD Value.
Type AlwaysUseMSOAuthForAutoDiscover, and then press Enter.
Right-click AlwaysUseMSOAuthForAutoDiscover, and then click Modify.
In the Value data box, type 1, and then click OK.
Exit Registry Editor
Go to this link for your reference and other troubleshooting procedures https://learn.microsoft.com/en-us/outlook/troubleshoot/authentication/outlook-prompt-password-modern-authentication-enabled
https://learn.microsoft.com/answers/questions/597147/office-365-outlook-keeps-asking-o365-credentials-e.html
-----------------------------------------------------------------------------------------------------------------------------
If the answer is helpful kindly click "Accept as Answer" and up vote it.