When a hole intersects a feature edge, at least 75% of the hole area should be within the material. Do not let the axis of the hole intersect an edge of the part or the drill will wander.
To configure this rule, set Minimum % of Hole Area inside Part.