A good next troubleshooting step is to try creating a new Outlook profile, then re-configure your IMAP settings.
Start by closing completely out of Outlook (no black dot on the bottom) opening the Outlook Profile Manager app:
Then click the + button and give the profile a name. Highlight the profile you just made and click the gear button then Set as Default.
Now launch Outlook again and put in your IMAP settings. I believe these are them:
https://ca.help.yahoo.com/kb/rogers/SLN4075.html
If this doesn't work, try clearing anything that has to do with Yahoo from your Keychain. Make sure Outlook is closed when you do that.