Ok, so the moth priest has bugged out and gone hostile. I don't have any save from before meeting him, so I can't re-play the quest. I wonder if there's any console command that can reset his behavior?
I tried using the "reset" command in the Puppeteer master mod, which made him non hostile but he walks around with his weapon out and it's impossible to talk to him after he has read the elder scroll.
I've also tried the "kill" console command to see if that would reset him, but the only thing that happened was that he went down on one knee.