This page will cover 2 Solutions, if none of the solutions work join the discord and report the issue.
Launch your minecraft client and look to to bottom right corner for your version
Make sure that it is at least version 1.18.0
If it is not please update your client.
If you are using the official horion injector you can ignore this section
If you are not please download the newest dll
If you have never used horion before ignore this section
Otherwise follow the steps below
Press the windows key + r (win+r) to bring up the run menu
Then input
%localappdata%\Packages\Microsoft.MinecraftUWP_8wekyb3d8bbwe\RoamingState
and press enter
A file explorer should appear
Delete the file named Default.h or edit it if you know what you are doing