I'm playing as HRE. Late era campaign. I am excommunicated.

Even with no heretics in my land. High level priests will just turn to heretics. As this a feature or bug? Is it a consequence of being excommunicated?

It's frustrating because I spend a long time leveling up my priests and then to have them turn spontaneously.