An overflow would happen when the residue contains unknown atoms that are not in the compound, and can prevent bonds from being properly created in ConnectAtomsOfResidue.