Thank you very much for the fast reply!
I will still try to disable SMT. I'd already read in this forum that it might help for AMD processors.
However, I think it would be interesting to note, for other users in the future, that reducing the number of calculated stats results in a building process that holds its speed without a hitch. Also, ram usage is very much under control, peaking in the beginning at around 25gb, but maintaining 4~8gb during the rest of the process.
TLDR: If you can, reduce the number of stats calculated for a reliable and stable build process.
I will comment later with results of disabling SMT! Thank you again for the help!