It would seem like red-wizard-utilities.lua:93 modified the file scope variable whenever a sweatshop is build. Which will have happened for people on the server but not for those that joined after the fact. So whenever onTick modified the machines inventory it will cause a desync, since the code will have run for those people present on the server before the sweatshop was built, but not for those that were not present (as onTick is pretty much a no-op for them).
Afterwards the game state is different for the players and they get thrown out.