A sometimes defense in legal malpractice is "preemption." The defense would be that regular rules of legal malpractice do not apply because a federal or state law has so occupied the field, that its rules take over.
Here is a short blurb about ERISA not preempting the field for a legal malpractice case.