Making the PLC robust to overflows caused by extreme bit-streams