I guess the issue is that I'm using nodejs v 16.13.0 and in beanstalk I found just nodev14 if is it true how I can upgrade the nodejs of my instance
Unfortunately, Elastic beanstalk (and AWS Lambda) only supports up to node 14.18.2. You will have to move to EC2 where you can install your own Node versions.
EDIT: AWS Lambda now supports Node 16.