I got the same issue with Beanstalk.
I finally apply this config:
DisableIMDSv1
Setting RootVolumeType to: gp3
See this discussion on AWS forum.