target, arm_adi_v5: catch two allocation errors