ERROR 1 [file ligand.itp, line 280]: Duplicate atom index (30) in dih

GROMACS version: 2024.1
GROMACS modification: Yes/No
Here post your question

ERROR 1 [file ligand.itp, line 280]:
Duplicate atom index (30) in dihedrals

ERROR 2 [file ligand.itp, line 280]:
Duplicate atom index (30) in dihedrals

ERROR 3 [file ligand.itp, line 280]:
Duplicate atom index (30) in dihedrals

ERROR 4 [file ligand.itp, line 280]:
No default Improper Dih. types

ligand.itp

As suggested by the error message, that is not a valid dihedral. You should have four different atoms in a dihedral angle. Did you get this itp file from somewhere else? If so, it would be good to report the error to them. If you made it yourself, I would recommend having a look at the reference manual, such as Parameter files - GROMACS 2024.1 documentation and File formats - GROMACS 2024.1 documentation.