When doing a dataset as files export photoshop makes sure that when using the data set name in the exported file name and there are multiple entries with the samen content the naming switches from the actual dataset content to the dataset index number as name component ie 'Data Set 10'.
I presume that is wanted behaviour to prevent photoshop from overwriting multiple files with the same name.
It would be even better if the duplicate name check would be run over the complete name composition including ie the data set numer as this can prevent duplicate naming and the actual data set content wouldn't need replacement in that case.