Realtime logging has stopped. Please refresh to enable it again

The message “Realtime logging has stopped. Please refresh to enable it again” occurs even afteless than a minute after a new code was downloaded. Af also after few minutes after logging in to code.
Very painful.
And there is some correlation between warning message and data sending to remote server for logging.
Solution?

For example:

2022-04-26T12:22:00.327 +00:00 [Status] Downloading new code; 3.15% program storage used
2022-04-26T12:22:00.778 +00:00 [Device] DC motor Started
2022-04-26T12:22:04.615 +00:00 [IDE] Realtime logging has stopped. Please refresh to enable it again.
2022-04-26T12:24:19.564 +00:00 [IDE] Realtime logging has stopped. Please refresh to enable it again.