I see you use Postgres, perhaps it's a modeling issue on our side.
Is that happening for all installations that have 6+ categories? Or just for a few (e.g.hard to reproduce)