a64: Return correct error code on invalid data stream