Compilation error: UnrealBuildTool : error : Could not find definition for module 'zlib', (referenced via Target -> Launch.Build.cs -> SessionServices.Build.cs -> Core.Build.cs)

Hi @anonymous_user_0606cc32,
This sounds like the files may not have been created properly. Due to filename length problems.
You could try my response to another user. Which seems to work.
UE5.sln file missing - Development Discussion / Unreal Engine 5 Early Access - Unreal Engine Forums