Can't Access Remote FTP

We use GIT FTP to upload changes from our bitbucket repo to our Shared Hosting. It has been working fine for a long time. Then we had to change our docket image for an issue, and after that, it worked for a couple of days. It stopped working for the last six days, and we are getting this error that we Can’t Access the Remote Host.

curl: (56) Recv failure: Connection reset by peer

We tried to access that ftp using the same credentials from Filezilla, and it’s working fine.

We are using cimg/node:20.0.0-browsers as our config.yml docker image.

Please help me out here. I appreciate any help you can provide.