I just tried setting the AWS_LAMBDA_JS_RUNTIME variable as per here, but that didn’t fix anything.
AWS_LAMBDA_JS_RUNTIME