I'm getting something similar - I did not cast the staff, but cannot use nor equip my grimoire, and the first time I ran into it was in the temple. Sometimes when I try it reports - "cannot equip while spellcasting is disabled". Can't find a note online regarding this - in case it was a in-game affliction of some sort.