Also having the exact same issue, but my node_modules aren't in my repo and I'm running the latest aws-sdk v3.
I'll have large files uploaded to my EC2 (up to 1GB), but once the transfer to the S3 begins, that starts the 60 second time limit for transfer to the S3.
So I've found that I can't do 2 files that are both 1GB in the same request. It'll transfer both files in their entirety to the EC2, but it'll only finish the transfer to S3 of the 1st 1GB file, then reach 60 seconds during the second file and halt. But if I do those same 2 files in two separate but parallel requests, it can transfer them fine.
My solution:
relevant software versions:
"dependencies": {
"@aws-sdk/client-s3": "^3.705.0", //(2 months old)
"express": "^4.18.2", //(2 years old)
"multer": "^1.4.5-lts.1", //(current)
"multer-s3": "^3.0.1" //(current)
}