Perhaps it's that he believes he is eventually going to succeed and he's convinced himself of this since he also consciously or subconsciously believes that if he doesn't he won't have any other ideas so he might as well try forever to get this idea to work.