FTP session limit for Ni Controllers

in AMX Hardware
I am trying to load png files on the touch panel by loading them on the ftp server of the touch panel.
Touch panels and codes are on system 1 and the png files are on system 4.
After about few hours, i am not able to connect to the ftp server on the controller via filezilla or ftp client and then png files dont get loaded. Then i need to reboot the controller for it to start working.Please advice if there is an ftp session limit for the ftp server in controller as this is the error that i am getting on the controller.
Here is the commands that i am using
ADD_TO_QUEUE (TP_ID,"'^RAF-',STB_NAME,'_',ITOA(K+BUTTON_START)") // CREATE RESOURCE
ADD_TO_QUEUE (TP_ID,"'^RMF-',STB_NAME,'_',ITOA(K+BUTTON_START),',%P1%H10.10.4.13%ALOGOS%Uadministrator%Spassword%F',LINKS[K+BUTTON_START]") // MODIFY RESOURCE
ADD_TO_QUEUE (TP_ID,"'^BBR-',ITOA(K+BUTTON_START),',0,',STB_NAME,'_',ITOA(K+BUTTON_START)") // ASSIGN RESOURCE TO BUTTON
ADD_TO_QUEUE (TP_ID,"'^BMF-',ITOA(K+BUTTON_START),',0,%SW1'")
Touch panels and codes are on system 1 and the png files are on system 4.
After about few hours, i am not able to connect to the ftp server on the controller via filezilla or ftp client and then png files dont get loaded. Then i need to reboot the controller for it to start working.Please advice if there is an ftp session limit for the ftp server in controller as this is the error that i am getting on the controller.
Here is the commands that i am using
ADD_TO_QUEUE (TP_ID,"'^RAF-',STB_NAME,'_',ITOA(K+BUTTON_START)") // CREATE RESOURCE
ADD_TO_QUEUE (TP_ID,"'^RMF-',STB_NAME,'_',ITOA(K+BUTTON_START),',%P1%H10.10.4.13%ALOGOS%Uadministrator%Spassword%F',LINKS[K+BUTTON_START]") // MODIFY RESOURCE
ADD_TO_QUEUE (TP_ID,"'^BBR-',ITOA(K+BUTTON_START),',0,',STB_NAME,'_',ITOA(K+BUTTON_START)") // ASSIGN RESOURCE TO BUTTON
ADD_TO_QUEUE (TP_ID,"'^BMF-',ITOA(K+BUTTON_START),',0,%SW1'")
0