RunUBT ERROR: UnrealBuildTool failed to compile.

Making an app with a dedicated server, so I’m trying compile UE from source. When I launch UE, I get the following error:

LogTurnkeySupport: Warning: Turnkey failed to run properly, full Turnkey output:
Running AutomationTool...
Using bundled DotNet SDK version: 8.0.300
Building AutomationTool...
C:\.UE\.Engines\UnrealEngine\Engine\Binaries\ThirdParty\DotNet\8.0.300\win-x64\sdk\8.0.300\Microsoft.Common.CurrentVersion.targets(2401,5): warning MSB3245: Could not resolve this reference. Could not locate the assembly "BouncyCastle.Crypto, Version=1.8.3.0, Culture=neutral, PublicKeyToken=0e99375e54769942". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors. [C:\.UE\.Engines\UnrealEngine\Engine\Source\Programs\AutomationTool\Apple\Apple.Automation.csproj]
C:\.UE\.Engines\UnrealEngine\Engine\Binaries\ThirdParty\DotNet\8.0.300\win-x64\sdk\8.0.300\Microsoft.Common.CurrentVersion.targets(2401,5): warning MSB3243: No way to resolve conflict between "BouncyCastle.Crypto, Version=1.8.6.0, Culture=neutral, PublicKeyToken=0e99375e54769942" and "BouncyCastle.Crypto, Version=1.8.3.0, Culture=neutral, PublicKeyToken=0e99375e54769942". Choosing "BouncyCastle.Crypto, Version=1.8.6.0, Culture=neutral, PublicKeyToken=0e99375e54769942" arbitrarily. [C:\.UE\.Engines\UnrealEngine\Engine\Source\Programs\AutomationTool\Apple\Apple.Automation.csproj]
C:\.UE\.Engines\UnrealEngine\Engine\Binaries\ThirdParty\DotNet\8.0.300\win-x64\sdk\8.0.300\Microsoft.Common.CurrentVersion.targets(3398,5): error MSB3554: Cannot write to the output file "C:\.UE\.Engines\UnrealEngine\Engine\Source\Programs\AutomationTool\IOS\obj\Development\IOS.Automation.Properties.Resources.resources". Could not find a part of the path 'C:\.UE\.Engines\UnrealEngine\Engine\Source\Programs\AutomationTool\IOS\Resources\GreenCheck.png'. [C:\.UE\.Engines\UnrealEngine\Engine\Source\Programs\AutomationTool\IOS\IOS.Automation.csproj]
Build FAILED.
C:\.UE\.Engines\UnrealEngine\Engine\Binaries\ThirdParty\DotNet\8.0.300\win-x64\sdk\8.0.300\Microsoft.Common.CurrentVersion.targets(2401,5): warning MSB3245: Could not resolve this reference. Could not locate the assembly "BouncyCastle.Crypto, Version=1.8.3.0, Culture=neutral, PublicKeyToken=0e99375e54769942". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors. [C:\.UE\.Engines\UnrealEngine\Engine\Source\Programs\AutomationTool\Apple\Apple.Automation.csproj]
C:\.UE\.Engines\UnrealEngine\Engine\Binaries\ThirdParty\DotNet\8.0.300\win-x64\sdk\8.0.300\Microsoft.Common.CurrentVersion.targets(2401,5): warning MSB3243: No way to resolve conflict between "BouncyCastle.Crypto, Version=1.8.6.0, Culture=neutral, PublicKeyToken=0e99375e54769942" and "BouncyCastle.Crypto, Version=1.8.3.0, Culture=neutral, PublicKeyToken=0e99375e54769942". Choosing "BouncyCastle.Crypto, Version=1.8.6.0, Culture=neutral, PublicKeyToken=0e99375e54769942" arbitrarily. [C:\.UE\.Engines\UnrealEngine\Engine\Source\Programs\AutomationTool\Apple\Apple.Automation.csproj]
C:\.UE\.Engines\UnrealEngine\Engine\Binaries\ThirdParty\DotNet\8.0.300\win-x64\sdk\8.0.300\Microsoft.Common.CurrentVersion.targets(3398,5): error MSB3554: Cannot write to the output file "C:\.UE\.Engines\UnrealEngine\Engine\Source\Programs\AutomationTool\IOS\obj\Development\IOS.Automation.Properties.Resources.resources". Could not find a part of the path 'C:\.UE\.Engines\UnrealEngine\Engine\Source\Programs\AutomationTool\IOS\Resources\GreenCheck.png'. [C:\.UE\.Engines\UnrealEngine\Engine\Source\Programs\AutomationTool\IOS\IOS.Automation.csproj]
    2 Warning(s)
    1 Error(s)
Time Elapsed 00:00:02.44
RunUBT ERROR: UnrealBuildTool failed to compile.
RunUAT.bat ERROR: AutomationTool failed to compile.
BUILD FAILED

I’ve looked and the files are there in the directories.

On another thread, someone said that turning off their firewall worked, but I tried that an no change.

This is my first time trying to make a project using UE compiled from source, so any help would be appreciated. Thanks.

When I select “Platforms”, Windows is greyed out.

And UE says the Windows SDK is not installed:

But I have VS 2022 set up per the instructions for UE 5.5.4.

When I open UE 5.5.4 from the version I downloaded via the Launcher, I get no errors and can package both Windows and Android with no errors.