I experienced this using Kleopatra, but as the error message is from libgpg-error I suspect that this might be a backend thing.
How to reproduce using Kleopatra:
With a card where the (user) PIN is blocked, choose "Generate New Keys" and follow the instructions. After entering the last PIN (which is the blocked one), the "Card error" Message comes up. Which is the catch all error message if all else does not match, I believe.
Expected: Error message ~ "PIN is blocked". Preferably directly after choosing the key generation action.