I have similar issue but with the following package:
"@aws-sdk/lib-dynamodb": "^3.699.0"
I just exclude it from build because lambda has v3 libs provided by AWS. Docs: https://docs.aws.amazon.com/lambda/latest/dg/lambda-nodejs.html#nodejs-sdk-included