This error often happens when you don't use SSL to secure your email account. To fix this error, use the following steps.
1-Choose Settings > Manage Accounts.
2-Choose the account that's out-of-date to display the account settings dialog.
3-Choose Change mailbox sync settings > Advanced mailbox settings. You may have to scroll down in the dialog to see Advanced mailbox settings.
4-Check the boxes for Require SSL for incoming email and Require SSL for outgoing email and then choose Done > Save.
Microsoft has added OAuth support for Yahoo! accounts in the Windows 10 Creators update. To install the Creators Update now, go to the software download site, and select Update now. For more information about the update, see Windows 10 Creators Update is here.
For more information please check this link.