Strange behavoir when building UE4 from sources

What’s up guys.

I try to build UE4 (version 4.27) from sources on Ubuntu 24.04 (x86-64). My desktop - Intel Xeon with 28 logical cores, RAM - 64 Gb.

When I do make -j28 my display turns off and ubuntu automatically logs me out from ui session. The same situation is with make -j14.

All works only with make but it’s very very slowly. What I do wrong ? Maybe there are some parameters to adjust memory consumption during the building ? or something else.