Try to specify another option, namely IgnoreUnknown like below:
Host *
IgnoreUnknown UseKeychain
UseKeychain yes
You can find more info about this here.
If you already have an IgnoreUnknown value, use comma separated values
Host *
IgnoreUnknown AddKeysToAgent,UseKeychain
AddKeysToAgent yes
UseKeychain yes
If you have multiple Host configs that use the UseKeychain option, make sure to put
Host *
IgnoreUnknown UseKeychain
before the first host that uses the the option, e.g. put it at the top of the file.
If you do not want to (or cannot) modify your SSH configuration file, you can also pass this option when connecting on the command line:
ssh -o IgnoreUnknown=UseKeychain my-host