In UE5, there is this option called Acceptable Radius, and it ends the MoveTo Task when the AI pawn is just 200 unit away from target actor or location.