Grouping decides the reading
The decoder splits the bit string into equal chunks and reads each as a binary number. If the digit count divides by 8 but not 7, only an 8-bit reading is possible, and vice versa. Lengths divisible by both - 56, 112, 168 bits - can be read either way; a byte of 128 or more can only come from an 8-bit chunk, which settles most such cases.