This usually happens when there is too much moisture. The best way to battle this is to make sure to squeeze out the juices from grated zucchini. Grate zucchini on a box grater, on the side with larger holes, then transfer grated zucchini into a mesh bag. You can also use cheese cloth. Squeeze out as much liquid as you can before mixing zucchini with remaining ingredients.