The correct answer is D. No error.

The sentence "I was there many a time in the past" is grammatically correct. The phrase "many a time" is an idiom that means "many times." It is used to describe something that has happened frequently in the past. In this sentence, the phrase "many a time" is used to describe the speaker's past visits to a particular place.

The phrase "in the past" is also grammatically correct. It is used to describe something that happened before the present time. In this sentence, the phrase "in the past" is used to describe the speaker's past visits to a particular place.

Therefore, the sentence "I was there many a time in the past" is grammatically correct.