AWS Lambda now supports failed-event destinations for Amazon Managed Streaming for Apache Kafka (MSK) and self-managed Apache Kafka event source mappings. Failed-event destinations enable your Lambda function to continue processing events on a topic even when it returns an error.
Source:: Amazon AWS