Add messageIds to error to track corrupt messages