пока не = till
Ivan was recalling and recalling new details, till he lost confidence in...

while = пока (when you imply a long time action; also "while" is used in English as a part of a substitution of adverbial participles - "while he was leaving" and so on)

Just remember that "пока" and "пока не" are different constructions and that they refer to different situations.