Return correct ECError class for PKey::EC key type