nintendo has consistently made more money than sony and microsoft. xbox one is probably microsofts last console, ps4 is doing very well but sony is still hemorrhaging money and have been losing billions of dollars and have been in the red for like the past decade, sony wanted to axe their film division after the hack and their electronics continue to sell like shit. sony in the future will probably become gaming only as the gaming division is the only division at sony that is consistently making any fucking money after they rebounded from the ps3, which is somewhat ironic considering its nintendo who caused sony to create the playstation in the first place by fucking them over.
nintendo however has consistently been in the black for almost the entirety of the companies existence and even with the wiiu doing badly and the 3ds rough launch they still managed to turn a profit and get back into the black (i think they were only in the red like 2 years if im remembering right)
nintendo has more money and financially is in a much better position than microsoft and sony and as long as they dont overproduce the switch they can continue to keep making more money than them. the switch is being sold for profit so as long as they dont make too many of them they wont be losing any money any time soon