Handle errors with validation format of barcodes