Lots of game objects interacting with one wall

The amount of sheeps shouldn’t really matter in this case. I would try two things in that situation then:

  1. Make the one big shape for the whole wall. It should not only work better, but also be faster to calculate.
  2. Make the collision shape a bit thicker (if is thin now).

I would make these shapes like that: