Read here: How to Protect Yahoo Email from Hacking and Cyber Risk During COVID 19 Detailed Solutions to Fix “Yahoo Mail not working on Mac Mail” manually
Reassure that your Yahoo email account security is not compromised or email account is not blocked.Make sure that Yahoo Mail server is working fine and is not down.Thirdly, ensure that there is no interference with a third party software installed in your Mac.