Sometimes Yahoo mail may not work with outlook because of a setting issue or improper setup. You'll need to set up Yahoo Mail with Outlook properly. Ensure you are using the most recent versions of both email services, as an older version might be the cause of this problem. Most apps, such as Outlook, use a less secure sign-in that must be enabled before an account can be set up.
For more read - https://onlinegeeks.net/configure-and-access-yahoo-mail-in-outlook/