The amount of sheeps shouldn’t really matter in this case. I would try two things in that situation then:
- Make the one big shape for the whole wall. It should not only work better, but also be faster to calculate.
- Make the collision shape a bit thicker (if is thin now).
I would make these shapes like that: