Add the installation folder to the exclusions list (Windows Defender).
Maybe you don’t have write permissions(run as administrator).
If you have bad sectors on the disk it can also cause problems (Check the disk).
Make sure you dowloaded the “RELEASE” branch from the repository… all the other branches have bugs.
I compiled UE5.5.4 a few days ago (the ZIP version)… Everything went well except for a warning when generating the VS files.