Big red flags. I used to practice law involving sexual abuse of children. He has indicators. You may simply be his “cover.” (This is not legal advice.)
It could be OCD-related (not giving psych advice), intrusive thoughts...but the things he told you and the books...that’s red flag stuff.
I would end the entire relationship.
On a lighter note, welcome back!