Sorry I didn't read this whole thread, it's way too long, so if this is repeat info, and a moderator reads this please remove this post... But here is my two cents, just a guess from someone that is a programmer of many languages...
This error is most likely caused by one of these two situations...
- Read/Write buffers are full, rather than corrupting the data, the connection is droped...
- Events are not being processed fast enough, there is too large of a collection of events that haven't been processed yet, and the "buffer" for managing events is full...