I am getting an AWS Lambda Error on Deployment

I just create a new Next Js page and the local npm run build worked fine.

On deployment to Netlify there are issues and I receive the following error. I would appreciate any thoughts or feedback on corrective measures:

4:53:03 PM: Error deploying
4:53:03 PM: ────────────────────────────────────────────────────────────────
4:53:03 PM: ​
4:53:03 PM: Error message
4:53:03 PM: Deploy did not succeed with HTTP Error 400: [PUT /deploys/{deploy_id}/functions/{name}][400] uploadDeployFunction default &{Code:400 Message:Failed to create function on AWS Lambda: invalid parameter for lambda creation: Invalid AWS Lambda parameters used in this request.}
4:53:03 PM: ​
4:53:03 PM: Error location
4:53:03 PM: At deploy the stage with HTTP status code ‘400’
4:53:03 PM: ​
4:53:03 PM: Resolved config
4:53:03 PM: build:
4:53:03 PM: command: next build
4:53:03 PM: commandOrigin: ui
4:53:03 PM: environment:
4:53:03 PM: - NEXT_PUBLIC_CONTENTFUL_ACCESS_TOKEN
4:53:03 PM: - NEXT_PUBLIC_CONTENTFUL_SPACE_ID
4:53:03 PM: - NEXT_PUBLIC_STRAPI_API_URL
4:53:03 PM: publish: /opt/build/repo/.next
4:53:03 PM: publishOrigin: ui
4:53:03 PM: plugins:
4:53:03 PM: - inputs: {}
4:53:03 PM: origin: ui
4:53:03 PM: package: ‘@netlify/plugin-nextjs’
4:53:03 PM: redirects:
4:53:03 PM: - from: /_next/image
4:53:03 PM: query:
4:53:03 PM: q: ‘:quality’
4:53:03 PM: url: ‘:url’
4:53:03 PM: w: ‘:width’
4:53:03 PM: status: 200
4:53:03 PM: to: /.netlify/images?url=:url&w=:width&q=:quality
4:53:03 PM: - from: /_ipx/*
query:
q: ‘:quality’
url: ‘:url’
w: ‘:width’
status: 200
to: /.netlify/images?url=:url&w=:width&q=:quality
redirectsOrigin: inline
4:53:03 PM: Build failed due to a user error: Build script returned non-zero exit code: 2
4:53:03 PM: Failing build: Failed to build site

Potential duplicate of: Build script returned non-zero exit code. Deploy did not succeed with HTTP Error 400