Adaptation to the number of estimated errors or to the channel state