What causes the "unexpected client behavior" kick and what can I do to avoid it?

I have attempted an interesting game idea involving bacteria or viruses that duplicate themselves after infecting a cell, the pathogens are physical objects and this went well until the pathogens multiplied at a certain rate in which I got kicked for “unexpected client behavior”. but this does not make sense to me as the pathogens are being handled on the server and not the client so how am I getting kicked for server behavior?

what is this error, what causes it and what can I do to avoid it?

I would suggest looking to see if a post involving this issue exist in #platform-feedback because this is likely being caused by a Roblox issue and not by your game. If no post about this bug exist then I would suggest creating a bug report

Typically when I encounter this error it is because the client is spamming remotes in an insane rate.
Is it possible that you’re spamming remotes in order to give information regarding the amount of pathogens?

not that I know of, but I also encountered this while playing the game “build and destroy”.
1: the player undoes their last action in the delete tool.
2: you go way past the part limit they have set, this triggers error guis telling the player they hit the limit.

3: while the remainder of the parts are still loading, guis are popping up like crazy and if u have enough parts trying to spawn in the player crashes with this error.