When a package is published via MDM using the Install Enterprise app command provided by Apple
On one of the devices, this command is failing with com.apple.appstored.xpc exception but works fine on other macOS devices having the same restrictions and OS version. We tried restarting the device and also the appstored process via Activity Monitor but it was in vain.
I am attaching system logs that contain the exception and stack trace when the command failed.