I think I understand the crux of your question. Testimony to a Committee could indeed undermine a witness involved in a court case. In principle, testimony before a Committee is not available to be used in court proceedings.
By the same token, witness’ counsel would be concerned that a witness might say something before the Committee that could be used by someone else ...