Image and Mask origin mismatch

While extracting pyradiomics features, my image and mask have the same spacing and size but the origins are off by a few millimeters. Feature extraction shows the below error

Will increasing the tolerance in the settings/ params file solve my problem?

Why does pyradiomics give a segmentation error for some masks