With clearExceptRobot and clearAroundRobot, we enforce the start and end point to be in the costmap and we pass these to STVL's clearArea. Because of that we can't reliably control the clearing (or lack thereof) of STVL's voxels e.g. with clearAroundRobot we can't clear voxels outside the costmap or with clearExceptRobot, we can't exclude voxels outside the costmap from clearing.
With clearEntire, it is not a problem because we call resetLayers() which resets the whole grid here
Not really sure what the generic solution would be here; is there any other layer to your knowledge that stores data outside the costmap bounds?
See SteveMacenski/spatio_temporal_voxel_layer#320 for complete discussion