Address Already in use: 5001

I often get this error once my app is deployed. Sometimes with the same code it works fine sometimes it breaks.
I am not sure what is the issue here.

I am Deploying a Node js application written in Nest.js.

Please help!

Hey there,
To get an error like that would mean that your starting your service twice in your service so the second time it starts there’s a port collision and it errors - could you be doing that?

John B