If you know the location where the cut starts leaving no change, the easiest thing to do would be to disable the feature when its position is beyond that value.
If yourPositionParameter >= 5 mm Then
Feature.IsActive("yourFeature") = False
Else
Feature.IsActive("yourFeature") = True
End If
If that position is harder to anticipate, you can check the health status of your features and disable them when they're sick like this:
For Each oFeature As PartFeature In ThisDoc.Document.ComponentDefinition.Features
If oFeature.Name = "yourFeature" Then
Feature.IsActive("yourFeature") = True
If oFeature.HealthStatus = HealthStatusEnum.kDriverLostHealth Then
Feature.IsActive("yourFeature") = False
End If
End If
Next
I found more details and more health statuses here:
https://forums.autodesk.com/t5/inventor-forum/checking-constraint-health-in-ilogic/m-p/6396661/highl...
Hope that helps