I believe you would still get the up event, but then without the decoded payload In case the payload successfully decodes the payload, you also get both the raw + decoded payload.
But if you receive the uplink event even in case of a codec error, then you have all the information haven’t you?
The uplink event contains both the data field (which is the raw payload) + uplink frame-counter. With that information you can trace the error log to the exact payload.