Error: FBitWriter overflowed! (and Client Disconnected)

This error never occured again for me by modifying UNetConnection::InitSendBuffer() to look like this:

void UNetConnection::InitSendBuffer()
{
	check(MaxPacket > 0);

	int32 FinalBufferSize = (MaxPacket * 8) - MaxPacketHandlerBits;

	// Initialize the one outgoing buffer.
	if (FinalBufferSize == SendBuffer.GetMaxBits())
	{
		// Reset all of our values to their initial state without a malloc/free
		SendBuffer.Reset();
	}
	else
	{
		// First time initialization needs to allocate the buffer
		SendBuffer = FBitWriter(FinalBufferSize, true);   // <---- MOD: allow resize 
	}

	ResetPacketBitCounts();

	ValidateSendBuffer();
}

But better would be to know the real cause :confused: