There is a DB_CompMax(2) line in _Global goal, which looks manipulate the maximum of companions (don't have time right now to check it) so you can play around it.

Also I don't remember the exact value, but at some number (I think 7) you will econter that UI does not have space for another character portrait