I think it would have to be negligence verging on the reckless for there to be any cause of action against a pilot doing their job, even if they fell below normal standards of competence. You can't stop someone suing an individual but the pilot would simply join in the airline in accordance with the doctrine of vicarious liability etc.