Pipe: sonarsource/sonarcloud-scan:1.0.1 stuck on a file while scanning rules

As I found here: Analyze an angular project on Bitbucket pipeline using sonar-cloud-scan pipe failed. It was a matter of increasing the memory allocated to the pipes.