Option 1 is correct because it is in correct format of past perfect continuous tense (had been+ present participle). Option 2 is incorrect because it is not following the correct format of the negative sentence. But it should be like option 3 which is in the correct format (had not been + present participle i.e. first form of verb + ing).