Currently, there is a decoding option in various COSE decoders allow_unknown_attributes to enable pass-through of header parameters that are not registered with CoseHeaderAttribute class. But there is currently no logic to cover situations where header parameter labels are referenced, sch as the crit (code 2) parameter value.
Whether or not this is allowed to be user-configured, it seems like the baseline decoder behavior should be to fail if a crit header references a non-registered parameter label. The rationale being that the source is declaring those parameters mandatory to be "understood" per RFC 9052.