RuntimeError: Exception thrown in SimpleITK ImageSeriesReader_Execute

I am trying to read a 3D dicom image with sitk as follows:

def read_first_series_in_dir(dir):
    series_reader = sitk.ImageSeriesReader()
    series_IDs = sitk.ImageSeriesReader.GetGDCMSeriesIDs(dir)
    series_file_names = sitk.ImageSeriesReader.GetGDCMSeriesFileNames(dir, series_IDs[0])
    series_reader.SetFileNames(series_file_names)    
    return series_reader.Execute()

I am getting the following ITK error:

RuntimeError: Exception thrown in SimpleITK ImageSeriesReader_Execute: D:\a\1\sitk-build\ITK\Modules\IO\GDCM\src\itkGDCMImageIO.cxx:309:
ITK ERROR: GDCMImageIO(0000019C41D84F60): Failed to change to Implicit Transfer Syntax

Any help is appreciated. Thank You.