I am using AWS DataSync to copy an S3 bucket from one region to another in the same account. For a few of my buckets, the DataSync task execution is failing with the error "Cannot allocate memory". It works for other buckets though. I am guessing that the failing bucket might be too big for DataSync to handle but I am not sure.
How can I fix the issue?