I have an AWS Lambda function, configured with only 128MB of memory, is triggered by SNS (which is itself triggered by S3) and will download the file from S3.
In
Try to increase the memory allocated to lambda from 128 to 256 MB