Almost every autocratic ruler in history has had problems with priests, it’s the nature of the beast. You’re saying they all were excommunicated?
As I said pretty clearly, the offenses which result in latae sententiae excommunication are specified in canon law.
Canon law is not engraved in stone, and has changed over the years.
Canon law in force during Hitler's rule, as does the law in force now, specified that a violent attack on a priest or religious resulted in latae sententiae excommunication.