I'm surprised that journalists wouldn't go to more effort to erase data like that. If I had a source whose confidentiality I cared about I would erase records like that after every communication.
While perhaps you could say that you don't know their name, you would be pushing the limits of believability if you were to say you remembered no identifying details about the person - what communication method(s) you used, their appearance, their aliases, email addresses or domains, etc.
Lying to a court that you recall nothing about the person who contacted you with information about a public figure is something that I'll leave for you to discuss with your lawyer.
You might want to have them discuss with you the repercussions of getting caught. Something about perjury.