I had the same problem on my Les Paul Classic. The pick guard was clicking here and there against the body while playing and so I read that my hand or pinky was generating static against it. So I removed the pick guard. Strangely enough, static and crackling is gone...