How to fix a nii or rec file with partial volume
I found the solution using the python package nibabel.
The code is rather simple. If filename is your nii, or rec file use:

import nibabel as nib
img = nib.load(filename,permit_truncated=True)
print("Saving image with shape:",img.shape)
nib.save(img,"truncated_{0}".format(filename))