I'd say that's what their mobile games, and partnership with DeNA is for.
Like you and Rol are saying, Nintendo's biggest success has been their handheld division, they've been keeping them afloat even when their consoles were bleeding money, or profiting minimally for years (Game Boy Color- Nintendo 64) (Game Boy Advance - GameCube) (Nintendo 3DS - Wii U). But now with the rise of mobile gaming, that has exploded especially in Japan where handhelds reign supreme, mobile gaming is a bigger competitor and represents a bigger threat to Nintendo than either Sony OR Microsoft at the moment. So with the handheld market shrinking thanks to mobile, that's why Nintendo needed to make that investment with DeNA, so that even if they lose money on whatever NX may be, they'll still have their mobile division to keep them afloat, much like their handheld division has done for their consoles for all these years. (Not to mention, Amiibos, which has also been a huge success for them, and the biggest reason why they're back to annual profits.)