Talking about S3's bucket notification tasks the lambda function will re-invoke 3 times and then will stop. Till the error condition is not fixed or it will exceed a service limit.
For the other event sources like Dynamo DB and other services it will try executing the code till data expires. You can use cloudwatch to get the metrics and can set alarms for the same.