What do NaNs represent in an SPM β-map?
Apparently, this can happen when your ROI is near the edge of the brain as reported here. The thread is pretty old though so this might have been fixed by today and there is another reason in your case.