“Friendly fire” for enemies in the Dark Souls series

Solution 1:

Your original premise is already wrong.

Bounding Demon of Izalith from Dark Souls can hurt each other.

Subsequently, there are other enemies like so in the other games.