Set max incoming message size, this prevents an outofmemoryexception when invalid message header is received.