When Minecraft is open and the Nintendo Switch goes to sleep for a while, you’ll turn it back on to find an inescapable error loop (error code 2124-0059) telling you that Minecraft can't connect to the internet even though my wifi connection is fine. I literally tested the connection while Minecraft was open, and it still wouldn't stop the error loop.
Thank you for your report!
However, this issue is Invalid.
This is a common issue across many different Nintendo Switch titles, rather than an issue specific to Minecraft.
Quick Links:
📓 Issue Guidelines – 💬 Mojang Support – 📓 Project Summary – 📧 Suggestions – 📖 Minecraft Wiki