From where does Rav Nahman [of Uman and Breslov] get the idea that there is such a thing as a Torah scholar that is a demon? It is from the Zohar page 253 in the book of Numbers. I had a chance to look it up and I see it is a good source to some degree, but Rav Nahman does interpret it in a unique way. For all you really see there is that there are two kinds of demons. Gentile demons and Jewish demons. And the Zohar does bring from the Gemara that Jewish demons can be sent on errands for the sake of Torah scholars that learn Mishna. And it adds that these Jewish demons are experts in Torah. But so far you do not see that they enter into the bodies of Torah scholars. That is a new idea that Rav Nahman adds.
[I should add here that I have a high degree of confidence in what Rav Nahman writes. And this lesson in particular seems to me to very important because it tells us something that otherwise people would only come to know by bitter experience after there is no more chance of correcting the damage that these demonic Torah scholars do.]