gapz_code_injection: improve a bit error handling