I don't know... I only got it when I set an attack with engineers only - As soon as I added a mobile infantry batallion it stopped the error and started killing the pesky robo-guards. Maybe it's to do with the number of enemy units? I don't know really, but you could try attacking with just the marines, see if it helps.