HMRC said it has sent out hundreds of thousands of letters after an error