Solved by using this version of SDK:
"@aws-sdk/client-cognito-identity-provider": "<=3.621.0", "@aws-sdk/client-ses": "<=3.621.0",
Reference to the GitHub Post Issue: https://github.com/aws/aws-sdk-js-v3/issues/7051