The ligand should have only one residue, and all atom names should be unique. Check your ligand PDB for this.