Thrown when a protocol message being parsed is invalid in some way, e.g.
it contains a malformed varint or a negative byte length.