Please use the technique described in Save segmentation directly to STL/OBJ.
The function is included in the “Segment Editor”:
and you include/exclude visible segmentations:
so it would be recommended to make your “out of bounds” segmentation invisible in Slicer before exporting with the above checkbox checked.