Throw exception on invalid chunk