Hi Tom,
this looks like you ran out of memory. You could also try to run aliBuild on less cores e.g. -j 1 or -j 2. See here for the full discussion.
-j 1
-j 2
But @laphecet’s solution is probably the way to go.
Cheers, Thomas