While I'm not immediately sure how it could be done, I would recommend in your case that you learn how to appreciate small accomplishments, both for them being small and for them still otherwise being an accomplishment. At the end of the day it still represents incremental progress, a stepping stone towards a larger body of work, kind of like gaining experience points in League of Legends back when you still played that.
You have a bit of a feast or famine mindset when it comes to success, this idea that it must be perfect or it's failure or settling. There's a lot of gray between that black and white, and before one can run one has to walk, before that crawling and before that tumbling around awkwardly. Most things in life tend to work as a gradual learning curve rather than being born with a superpower.
Everything is built out of pieces, and no one's a master on their first day.
Ę̵̚x̸͎̾i̴͚̽s̵̻͐t̷͐ͅe̷̯͠n̴̤̚t̵̻̅i̵͉̿a̴̮͊l̵͍̂ ̴̹̕D̵̤̀e̸͓͂t̵̢͂e̴͕̓c̸̗̄t̴̗̿ï̶̪v̷̲̍é̵͔