Not sure what's exactly is broken in the latest version of the @aws-sdk, but if you pin the version of the package to the older one that worked for you, this should solve the issue
In your package.json
set the version of the client-s3 and client-dynamodb to
"dependencies": {
"@aws-sdk/client-s3": "3.701.0",
"@aws-sdk/client-dynamodb": "3.701.0",
...
},
Don't forget to run:
npm install
It would probably make sense to create an issue in AWS SDK Github repo to ensure they are aware of the problem (if it doesn't exist yet).