The issue has been resolved when I removed '^' symbol from the version.
From: "@aws-sdk/client-s3": "^3.701.0",
To: "@aws-sdk/client-s3": "3.701.0",