Not sure if this applies to all enemies but noticed that this was a trend for the humanoid enemies in Karnwasten. When they are stunned, they sometimes become untargetable/immune and they heal back to full health. Once the stun duration ends, they can be targetted again and killed.