Error when making API to fetch objects from AWS S3 bucket.

Error when making API to fetch objects from AWS S3 bucket.


I have a serverless app/function that in z-flow, that makes a GET request to AWS S3 bucket, but sometimes I get error which states that the "Execution exception : 'Invoke url response content length cant be greater than 5 MB' at line number 17. Resolve the errors and try executing it again"

Sometimes, I have re-run (resumed or restarted) an instance that failed and the same URL didn't throw any error and in a few cases, I have re-run/resumed or restarted the flow execution but didn't work still.

So, what is the solution to this?