Usually shortly after joining, although it can be delayed and seems to be rather random. It takes the form of a Internal Exception: Java.io.IOException.
I have already tried reinstalling my game, tried playing with and without mods, tried letting minecraft through my antivirus (I use AVG). I'm at a loss here. This only occurs on Aternos servers it seems, as I have a perfectly fine time playing on other servers.