I've added these values to the docker composer yml, to increase the recourse, and the error has gone
deploy: resources: limits: memory: 4G cpus: '2.0' reservations: memory: 1G cpus: '0.5'