The message appears every time that I try to enter a Minecraft server on multiplayer. It happens either five seconds after I join, or ten minutes - it is seemingly completely random when it decides to kick me with this message. There are a lot of errors that are after the "Internal Exception: io.netty.handler.codec.DecoderException:java.util.zip.DataFormatException and numerous other issues" message, as seen from the screenshots below. These screenshots are errors from the private server, but they are the same from Hypixel. If you need to see the exact same thing using the right server for technicality purposes, I will do so. It originally happened on my friend's private server which is running an older version, but I loaded into Hypixel - an up-to-date multiplayer server using the most recent version - and it still occurred. I am using a brand new PC that has no issues running any other game, I have tried running on Wi-Fi and LAN, used different ethernet cables, ports, adapters. I have completely uninstalled Minecraft and Java and tried again. I also have Minecraft on my laptop with the same account, and there are no issues there. I have done many things and this issue persists, so I am here for a last resort.
Please make sure you are using an unmodded version of Minecraft through the default launcher, using the latest version of Minecraft. The same applies to the server you are connecting to, as these servers are not running latest or vanilla. 1.21.4 does not run on Java 17 but should come with its own bundled version of Java 21. Otherwise this is likely to stem from something outside of the game