First of all, Third party software like antivirus and Firewall settings must be disabled.
In safe mode, run MS Outlook.
First remove, then re add the yahoo mail account in Outlook
Check the server settings of Yahoo mail account.
Read more here:- https://www.datarecovo.com/yahoo-mail-not-working-with-outlook/