Sent 1011 keepalive ping timeout; no close frame received

websockets.exceptions.ConnectionClosedError:

sent 1011 (internal error) keepalive ping timeout; no close frame received
Attempting to reconnect in 5 seconds…
[KeepAlive] Ping failed:

sent 1011 (internal error) keepalive ping timeout; no close frame received

Hello Support team. Pls provide solution or some of reliable script in which this problem not raise. Currently Ping out issue raise data gap. and impact of this goes direct trade.
Do needful