@Rory-McCune is right, this question is better asked in serverfault.
However, speaking from a security point of view, you want to limit the number of requests that your server will handle, and the amount of bandwidth that each can serve (throttling), for example, the module limit_req throttles connections in NginX to prevent abuse.
You can also limit the number of connections per IP with IPTables, which limits the effectiveness of download managers.
This error may also show up from a DoS attack (but it may also show on legitimate scenarios), so you can basically look up techniques for DOS mitigation and that will help you prevent this error.