reftable/stack: do not overwrite errors when compacting