Don't know if this has been said but you are not supposed to use the yubikey on your mail client. Google recommends you use an application password for email clients. As someone who has 5 yubikeys for different services I know this sounds unsafe but is the only way I've been able to use some of the mail programs with Google. The other option would be to enable another 2fa (maybe auth codes with Yubico Authenticator) and use that on the mail programs.
For Google I ended up using web client and fido2 (and another yubikey as backup and another as auth code generator) and my work requires Outlook but they also ask me to change passwords each month and input them on different platforms that don't support f2 and that breaks a few things for me so I opted for Yubico Auth and use my yubikey instead of Microsoft Authenticator or Google Authenticator.
Don't know if this has been said but you are not supposed to use the yubikey on your mail client. Google recommends you use an application password for email clients. As someone who has 5 yubikeys for different services I know this sounds unsafe but is the only way I've been able to use some of the mail programs with Google. The other option would be to enable another 2fa (maybe auth codes with Yubico Authenticator) and use that on the mail programs.
For Google I ended up using web client and fido2 (and another yubikey as backup and another as auth code generator) and my work requires Outlook but they also ask me to change passwords each month and input them on different platforms that don't support f2 and that breaks a few things for me so I opted for Yubico Auth and use my yubikey instead of Microsoft Authenticator or Google Authenticator.