This is true whether the validity issue becomes apparent during initial attorney-client consultations or in the midst of litigation proceedings.
This is never true no matter when the validity issue becomes apparent.