I'm on Windows 10 trying to play Minecraft Bedrock for the first time, but it won’t get past the loading screen. It stays like that for hours. Does anyone know how I can fix this?

I’ve tried everything, including formatting the computer and updating the drivers. I also uninstalled any antivirus software that could interfere with the game.
Bedrock gets stuck in the loading screen on Windows 10