Yeah, it's called "Darkness Falls." One of my favorite episodes of the X Files.
I thought Darkness Falls was about the insect swarm (still a great episode, regardless) but the one I’m thinking about in particular was very early in the series, maybe the 7th or 8th episode, and there was a parasite buried in some ice somewhere, then a sample melted and it wound up in a border collie...