Term: success anxiety
Example: he was about to close the deal and success anxiety messed him up
Definition: self-defeating just as you're about to achieve success