Atom index in position_restraint out of bounds

GROMACS version:
GROMACS modification: Yes/No
The following error is found when I am running the pulling simulation after restraining my protein chains. my protein having three chains and i pull the only one of half portion of the chain c.
Atom index (1100) in position_restraints out of bounds (1-1099).
This probably means that you have inserted topology section
in a part belonging to a different molecule than you intended to.
In that case move the “position_restraints” section to the right molecule.

See Common errors when using GROMACS — GROMACS 2022 documentation and the cautionary message in the help info for genrestr.