Usually if something like this happens there is a advert in there that has a </div> or some other tag too much in it. In this case a closing div seems logical. Did you check for that?
In your screenshot, advert 5 would be the broken one then, if that’s the case.
What does that same groups code look like if you stick only 15 or 16 adverts in there?