You're calling it 4 times a second - realistically requests won't get handled that quickly and will pile up - the maximum number of open connections you can have is 5 on ESP8266.
So you really need to queue requests less than once a second. To be honest if it's more than one every 10 seconds you should probably be considering using WebSockets instead.
What's the other error you get with a bigger interval?
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
You're calling it 4 times a second - realistically requests won't get handled that quickly and will pile up - the maximum number of open connections you can have is 5 on ESP8266.
So you really need to queue requests less than once a second. To be honest if it's more than one every 10 seconds you should probably be considering using WebSockets instead.
What's the other error you get with a bigger interval?