Since upgrading a Dockerised Lambda to version public.ecr.aws/lambda/nodejs:16.2022.07.19.13 we have been getting lots of the following errors intermittently in the lambda function:
Unexpected Top Level Error: Error: Failed to get next invocation, error -1
Downgrading to public.ecr.aws/lambda/nodejs:16.2022.07.05.12 resolved this issue.