Hi Xander. I'm Greg, an installation specialist, 10 years awarded Windows MVP, and Volunteer Moderator, here to help you.
See fixes for not being able to connect to Minecraft Bedrock World in Windows 10:
https://help.minecraft.net/hc/en-us/articles/36...
https://www.partitionwizard.com/partitionmagic/...
https://www.drivereasy.com/knowledge/solved-min...
https://www.reddit.com/r/Minecraft/comments/aza...
https://www.reddit.com/r/Minecraft/comments/bct...
https://www.reddit.com/r/Minecraft/comments/94s...
https://www.minecraftforum.net/forums/support/m...
https://www.windowscentral.com/minecraft-guide-...
https://appuals.com/how-to-fix-unable-to-connec... (Avoid ad links, especially avoid Reimage ad!!)
https://www.youtube.com/watch?v=y4xYwCPkYxQ
https://www.youtube.com/watch?v=pDyIOlQsRlc
One of those should cover it. If not I'd contact Xbox Support here:
https://beta.support.xbox.com/contact-us
I'd also post in Xbox forums and ask for an Ambassador who are the MVP's of Xbox:
https://forums.xbox.com/en-US/home
I hope this helps. Feel free to ask back any questions and keep me posted. If you'll wait to rate whether my post resolved your problem, I will keep working with you until it's resolved.
______________________________________________
Standard Disclaimer: There are links to non-Microsoft websites. The pages appear to be providing accurate, safe information. Watch out for ads on the sites that may advertise products frequently classified as a PUP (Potentially Unwanted Products). Thoroughly research any product advertised on the sites before you decide to download and install it.