Discourse on AlmaLinux

Definitely out of memory from what I can see. Try making a bigger swap (maybe 4GB) and see if that lets you rebuild.