The film "Mr. Holmes" captures this man who is losing his memory and is filling with increasing pain. The exit ramp comes through his relationship with his uneducated housekeeper and her highly intelligent young son.
Holmes struggles to remember the facts of his last case. It was the one which drove him into retirement. Essentially it concerned a young wife who was in deep mourning for the two "children" she lost in miscarriages.
Her husband didn't understand. The symbol of that obtuseness was not ponying up the funds for tombstones for the two. He hires Holmes to make sense of what is going on in his wife's mind.
Long story short, Holmes explains the facts to the woman. A half hour later she walks into a speeding train. As he connects the dots, Holmes recognizes he should have lied to her. His redemptive act is to send a letter of lies to a man in Japan whose father had deserted the family. That son has summoned Holmes to Japan to try to shake some information and insight loose from him. No go, at that time.
Part of the acceptance of the heart of the matter is Holmes' deeding his house and land to the housekeeper and son. The power situation melts away. They are the family he has been searching for. The film ends with his being able to mourn what he has lost. In Japanese fashion, he puts out a stone in the garden for each one of those.