Several internal compile errors after I installed Unreal 5.1

Hi
I installed Unreal 5.1 and choose to copy the project not to upgrade but I found compilation result in several unknown errors so I removed everything , updated VIsual Studio 2022 then installed Unreal 5.0.3 again. I tried to open the old crypt rider project but unreal display a message unable to open compile source manually so I tried to compile with visual studio but I got several unknow errors

How to fix these problems ?

I found the reason that the engine try to use windows kits 10 while windows kits 11 installed. How I can make the engine use windows kits 11 ?

Privacy & Terms