I’ve found that you could join a world via LAN, but when inviting someone through xbox, they’re minecraft freezes before crashing, they cannot join the world
Linked issues
Comments 2

Thank you for your report!
We're actually already tracking this issue at MCPE-69002, 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.
If you haven't already, you might like to make use of the search feature to see if the issue has already been mentioned.
Quick Links:
📓 Issue Guidelines – 💬 Community Support – 📧 Customer Support – 📖 Game Wiki
I'm having the same issue, couldn't find a fix yet really starting to ruin the game.