This operation cannot be completed because the instance is not valid. Use MakeValid to convert the instance to a valid instance. ...

24144: This operation cannot be completed because the instance is not valid. Use MakeValid to convert the instance to a valid instance. Note that MakeValid may cause the points of a geometry instance to shift slightly.