Hey there
A few things to try:
- Try bumping the image
node:12.20
tonode:12.22
(this is the minimum supported version of NodeJS for running analysis) - You should also try bumping up the memory granted to the Docker image and scanner java process, such as this user did (check their bitbucket-pipelines.yml file for how they bump the memory allocated to Docker)