Pathfinding error handling