Interesting. Anecdotally agree.
I’ve been trying to improve my mindset when coding. I find myself worrying about solving the problem correctly, and I’m trying to change that so my focus is more on slow, correct practice. Easier said than done, but the idea is that it will be less stressful and reduce the frustration peaks you mentioned