Issue
gpg --card-status
gpg: selecting card failed: Broken pipe
gpg: OpenPGP card not available: Broken pipe
Solution
.gnupg/scdaemon.conf
reader-port Yubico Yubi
pcsc-driver /snap/yubioath-desktop/current/usr/lib/libpcsclite.so
card-timeout 5
disable-ccid
sudo systemctl restart pcscd