It is returning multiple ships in a single sobgroup, because “there are only two ships in sSobGroupToSplit”.
Thanks.
[edit]
Never mind. The same function exists in “data\leveldata\multiplayer\lib\lib.lua” but renamed to SobGroup_SplitGroupFromGroup, and I just used the workaround Gearbox devised.