I debugged the issue. The error ocurres in the package wneessen, when it sending a NOOP command to the server, From time to time, this command produces a strange error: "Keeping connection alive artificially is not allowed". The strangest thing is that googling produces absolutely nothing.
My email provider is mailgun, which I use for some years now, with very few problems.