I'm sorry if my English is not good enough to make this difficult.
I should mention that it is possible to play single-player, but if you build a server and try to join it, you will get the first error, nonetheless I should try it?
I am trying to connect to a 1.19.2 Forge server with mods and instead of joining, I am stuck on loading screen which dims slightly and then shows the following error:
[1.19.2] Internal Exception: io.netty.handler.codec.DecoderException: java.lang.IndexOutOfBoundsException: readerIndex(12) + length(1) exceeds writerIndex(12): PooledUnsafeDirectByteBuf(ridx:12, widx: 12, cap:12/13)