Issue in generating Protein topology

I am using pdb2gmx to generate topology files for KRASG12C which is GDP bound but I am getting this error “the residues in the chain mg301–gdp302 do not have a consistent type. the first residue has type ‘ion’, while residue gdp 302 is of type 'other. either there is a mistake in your chain, or it includes nonstandard residue names that have not yet been added to the residue types.dat file in the gromacs library directory. if there are other molecules such as ligands, they should not have the same chain id as the adjacent protein chain since it’s a separate molecule.” can you give a step-by-step solution as I am new to this field?