Dodgy said:here is the incriminated code from the 2.023 source module
this dialog should not be there without a condition in the first place, so devs will probably move this feature to a event-chain.
You yourself reported a bug. Having only two companions the game complained about you having more than 10
Remove it (disable it), then keep a eye for next patch source.
The other point on this is that affects temporary retirement of a companion. You already removed complains/etc from them, so this should not be used on your tweaked version. Companions can't get mad on you to the point they decide to leave.
TLDR: remove it