One piece of advice I’ve seen is to write constantly. Another piece of advice I’ve seen is to just get it all out on the page and not worry about how it turns out, to fix it in the editing stage.
Except, I can’t help but go back and overthink it. If I write a section or piece, I’m constantly revising as I go along, reworking a sentence or scene or even the word choice as I write. Most recently, I had put myself to a challenge to write 500 words a day (I’ve already failed). I wrote a scene for a story I’d like to work on, but then next day I looked it over and didn’t like it. So I deleted it, and then thought some about what to do instead, and then didn’t write anything more than that.

Not that I have the discipline to keep writing constantly at all. But even if I could do that, I restrain myself from working on a very specific spot too long. When you face that boomerang editing period, I think it’s time to take a break from that section/piece and to become (somewhat) a stranger to your work again.
I don’t follow the advice directly and instead my goal is to not let my thoughts rot in my brain. Furthermore I try to have a healthy amount of parallel projects and naturally when it’s time to turn away from project A, I let my rising motivation for another project take over. Not that I have the discipline to maintain a healthy balance between my parallel projects…