iOS MDM command response Catalyst.error

Random iOS devices respoding with

<key>ErrorCode</key>

<integer>502</integer>

<key>ErrorDomain</key>

<string>Catalyst.error</string>

<key>LocalizedDescription</key>

<string>Server session invalidated.</string>


A lot of iOS devices are responding with the above for random commands such as installed application list, profile list etc.

We cannot find any issue on the code from our side and are not able to reproduce the issue to know whats going on.

Please help us in figuring out why we are facing such response from iOS devices.