Validate the length of the input data for the reliability layer