Is there any way to avoid getting this so called "cotton fever"?
Yes.. Don't use drug intravenously.
I wasn't going to post this because it's a very sensitive subject for me but oh well..
I have experienced cotton fever first hand (I'm a recovered addict). I have ONLY experienced it as a result of very specific circumstances (cotton used to filter liquid from powder substance then placed aside while still moist to save for later - at a later time I would "re-cook" the used powder substance and again filter the liquid thru the same cotton piece)..
While it's called "cotton fever" my personal experience has shown that it does not arise from cotton alone (the already-used powder substance from a specific prescription medication seems, in my experience, to play a big role and AFAIK, cotton fever is isolated to the IV-drug-user community.