Gromacs not reading dihedral which is given in respective file

GROMACS version:2022.6
GROMACS modification: No
Hi, I generated a new topology using aAMBERGS forcefield . I’ve been able to build my system successfully, but I got the following error when running grompp prior to energy minimisation:
ERROR 1 [file topol_Other_chain_B.itp, line 22572]:
No default Proper Dih. types

ERROR 2 [file topol_Other_chain_B.itp, line 22573]:
No default Proper Dih. types

ERROR 3 [file topol_Other_chain_B.itp, line 22574]:
No default Proper Dih. types

ERROR 4 [file topol_Other_chain_B.itp, line 22575]:
No default Proper Dih. types

ERROR 5 [file topol_Other_chain_B.itp, line 22598]:
No default Proper Dih. types
… upto 1608 errors
the dihedrals are already given in the .rtp file and ffbonded.itp file but it is not detecting and the dihedral func. is given 4 but when it generate topology file it is showing func. 9

Any help would be appreciated!
Many thanks.