Something that has helped me, in many similar situation is to restate my intent.
Reminding myself that my goal is to be a better engineer tomorrow and not really to do a great job right now. I am after getting better, current work that i am doing is just way to get better. Taking such a position seems to solve lot of problems.
Criticism becomes something that i am actually after. I am not attached to what I build in the past. Of-course it is crap, i would not do it the same way now as i am better.
Take pride in getting better. Not in in the job done.