Piracy probably didn't kill any console. Apart from the PS4, piracy was rampant on pretty much all of the most successful consoles, beginning with the PS1. PS1, PS2, WII, DS, 3DS, Switch. All sold/sell fantastic and have great software attach ratio's. On the other it wasn't much of a problem at least in the first couple of years on consoles like the Gamecube, PS3 or XBone. If your games or business modells aren't there, your console will flop. I realize that's not a perfect logical argument but still the correlation seems to be minimal.
That's not to say piracy isn't a problem but I think it's more for publishers of certain games than for the console manufacturer at large.