A criticism of one man named Shaqīq does not carry over to another solely because their names coincide. Al-Nawawī specifically distinguishes the storyteller Shaqīq from Abū Wāʾil Shaqīq b. Salamah.
Hadith critics use names, kunyas, affiliations, chronology, teachers and students to determine identity. Misidentifying a narrator can transfer an adverse judgment to the wrong person.