Client xxxxxxxxxxxx disconnected due to malformed packet

Hi all,
IOT device after connecting to broker it subscribes on two topics.
After subscribing to second topic below message is observed in the log.
Client XXXXXXXXXX disconnected due to malformed packet.
This error is observed with few devices.

Details below


This error indicates that a client was disconnected due to a malformed or invalid packet.
This can happen for multiple reasons, such as the client sending a packet that does not comply with the MQTT protocol, e.g. invalid headers. It could also be triggered by a bug in the client implementation. Further, network issues can be the cause of the problem.

To debug, make sure that your client implementation uses the latest version of its used library, if you have an error in your code or if your packet may get corrupted in transit.