When running a Deepstream pipeline (in Python), sending detection messages to the AWS Cloud works fine for a few hours, but then we start getting these error messages and it looks like the connection is not reestablished.

Does anybody have any idea what could cause this and how to fix it?