So this bug is not caused by damaging an NPC. It's actually far more insidious than that.
No, this bug is caused by "entering melee engagement" with them. What does that mean? Just pass too close to them. It'll set them all off and you'll be forced to play murderball.
They need to be coded as allies through and through.