ok my friend i think now we can see there is a problem communicating between your computer (the installed program) and the yahoo server
so lets try these steps
first you can try this simple step and install yahoo again see if it going to work
go to start and in the search bar (lower left side of the list) type CMD (dont hit enter or anything just type it)
you will see on the left top side there is CMD and the icon is black
right click on it and select run as administrator and click continue when windows is asking to cancel or continue
now type in the black window
netsh firewall reset
hit enter
now close the window and try to install
if not working then you will have to disable the firewall, windows defender and all the security programs
that should solve the issue.
if you have any further question feel free to ask
dont forget to rate my answer
cheers!!