Correct option is B
The correct substitution of the highlighted words is (b) "until he gave up his job and lived."
Error identification: The verbs "gave up" and "lived" should be in the same past tense.
Grammatical Rule used: Maintain parallel structure by using the same verb tense.
Corrected sentence: He was not happy until he gave up his job and lived as a fakir in the forests.