With all of Nintendo's resources and software output now focused on a single device, which will almost certainly be portable, the chances of another Wii U disaster are minimal.
Even if they shoot themselves in the foot again, it's much more likely to be another 3DS; they sell around half of the current Switch, but still enough to turn a healthy profit and keep themselves relevant until they can regroup and try again with the next one.