You have to Enable IMAP and Less Secure Apps feature from AOL Mail and from Office 365. After enabling these settings you will be able to Sign in without facing any error.