I found that this patch for the UnrealBuildTool was able to unstick the process - be sure to check the log it generates just in case.
As noted check “C:\Users_yourusername_\AppData\Roaming\Unreal Engine\AutomationTool\Logs\C+Program+Files+Epic+Games+UE_5.4” or similar folder for the .txt file with the long name.