If we have a test.vcf and use htslib/bcftools 1.1 to:
bcftools view test.vcf
We get
[E::bcf_hdr_add_sample_len] Duplicated sample name .... Failed to read from test.vcf: could not parse header
We get the same error for running any bcftools command.
But using an old version bcftools (1.9-207-g2299ab6 Using htslib 1.9-271-g6738132), then the file can be viewed OK.