What failure? Pelosi is not the Party leader. Her job is primarily legislative, and she did a very good job of it when she had the numbers behind her to do it. Without Pelosi, there is no ACA. Blaming her for the election results is kind of like blaming Iraq for 9/11.
I think some people here are trying to shift blame to Pelosi in order to avoid facing up to where the failures really happened. The election was the responsibility of the DNC and the Clinton campaign. Pelosi was not in charge of either one.
OK, but in my mind I consider the DSCC and DCCC to be arms of the DNC. So when I write “DNC”, I am actually lumping them all together. You may see a greater distinction there than I do.