I have a same problem that happening all time when I want to install a package.
I see these OpenSSL error from mirror.xenyth.net every times that I try to install any package.
in order sudo reflector --protocol https --verbose --latest 25 --sort rate --save /etc/pacman.d/mirrorlist
then yay -Syyu
then sudo eos-rankmirrors --verbose
then yay -Syyu