I don’t this is as likely as many people in these comments seems to. MS will still profit hand-over-fist on games sold on the Switch and the PS5. Many people even buy the same title multiple times across platforms happily!
They have no reason to pull out of those markets.