If this is similar to when the game freezes on the Epilepsy screen before crashing. This should work for you
Windows 10 Unhide:
Open File Explorer from the taskbar.
Select View > Options > Change folder and search options.
Select the View tab and, in Advanced settings, select Show hidden files, folders, and drives and OK.
Windows 11 Unhide:
Open File Explorer from the taskbar.
Select View > Options > Change folder and search options.
Select the View tab and, in Advanced settings, select Show hidden files, folders, and drives and OK.
1️⃣
Open File Explorer from the taskbar.
Select View > Options > Change folder and search options.
Select the View tab and, in Advanced settings, select Show hidden files, folders, and drives and OK.
2️⃣ C:\ProgramData\Hogwarts Legacy
3️⃣ Delete these four files, and also delete them from your recycle bin
4️⃣ Task Manager ➡️ Cancel all processes of Steam or restart your computer if you want to be extra confident.