Using New Outlook on Windows for personal email, calendar, and contact management
This typically happens when Yahoo does not like the authentication method Outlook is using. Try generating an app password in your Yahoo account and use that in Microsoft Outlook, it usually stops the repeated login prompts