Got the runtime error, Did not get requested region!

Hello, I am new to itk-elastix and the registration process. I am doing the rigid registration, the data type for both moving and fixed is float and I have used the already defined parameter file for registration. The parameter file works fine for rigid when I do it using the SimpleElastix. I previously did for affine using the parameter file that is defined in similar manner as for rigid and It worked fine.
I am getting an error:
RuntimeError: C:\P\IPP\ITK-source\ITK\Modules\IO\ImageBase\include\itkImageFileWriter.hxx:366:
Did not get requested region!
Requested:
ImageRegion (000000E4215EECD0)
Dimension: 3
Index: [0, 0, 0]
Size: [256, 256, 35]
Actual:
ImageRegion (000000E4215EED08)
Dimension: 3
Index: [0, 0, 0]
Size: [0, 0, 0]
Much appreciated for the help, with this issue, Thanks!

If you share your code (and maybe the parameter file), someone might be able to help.

@kaspermarstal is the contact person for SimpleElastix, maybe he has some advice?

SimpleElastix and ITKElastix might be using different versions of underlying elastix.

@Niels_Dekker and/or @ntatsisk might be able to help.