I did some research about the problem, it seems to be a bug regarding UE5, when building HLODs, the editor crashes. Maybe you could try the latest version of Unreal (5.0.2), it seems that the problem is fixed in this version. If the problem continues whatsoever, you can report this bug filling the form on the attached link:
https://epicsupport.force.com/unrealengine/s/?language=en_US
Hope this helps!