Sentence:  Although I wished to think that all was false, it was yet <WSD>necessary</WSD> that I, who thus thought, must in some sense exist. 
Meaning of the word marked with <WSD> tags:  Required, essential, whether logically inescapable or needed in order to achieve a desired result or avoid some penalty.