One treasure golem clipped through the wall

I got 5 of them with a special nether room prediction.

I lined them all up and cornered them all into a line. Some of them started to overlap.

One of them then jumped out of the corner.

Seems to be related to enemy on enemy collision(avoid?).
Because all, but one of them clipped through.