you could try to operate on a smaller version of output/representative_sequences.qza
. Just take e.g. the first 10 sequences from this file and check if this runs through.
It might also help to reduce --p-threads 12
to just 3. Otherwise each core only gets 32/12 = 2.6 GB per task, which might be too low.