I2C interface: discard messages with an invalid number of bytes