I keep getting stuck on a loading screen that lasts for about thirty minutes, most times longer, sometimes it doesn't go away and I have to restart my switch, or hit the home menu button and exit out of Minecraft. Whenever I exit with the home menu, it says Minecraft was closed because an error occurred.
Related issues
Comments

Thank you for your report!
We're actually already tracking this issue at MCPE-111640, so I will resolve and link this ticket as a duplicate.
If you would like to add a vote and any extra information to the main ticket it would be appreciated.
Quick Links:
📓 Bug Tracker Guidelines – 💬 Community Support – 📧 Mojang Support
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki