Irregular line breaks in grouping

As seen in a collection subfolder.

It wants to use 2 lines if it can, but if the group only contains 1 line then it can't.

Ok, thanks.