blk_unpack: handle some input errors