Throw error for invalid ack mode