Before you start either avoiding and/or getting rid of yarn left and right, it would be helpful to know more about it. Like, what is the name of the yarn? Who makes it? And exactly how is it made "mothproof"?
The assumption that it has pesticide all over it may or may not be valid (unless you specifically saw that on the label). But we can't help you much (or even research it) without knowing some basic information.