Sometimes this happens if their is somewhere a circular relation.
E.g. an autosized form (or container) that has several controls in it, such as they are anchored to need always a little more space than the control currently has.
Then the container grows, the child controls moves, the container grows, .... and eventually you hit 32k and get the exception.
Without a sample to reproduce, its impossible to tell more.