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.

I have seen a lot of people recommend waiting a longer time between writing and editing.
It’s difficult to see something objectively if you never separate yourself from it.
So, in the old days, writers would write something out, put it in a drawer for months or years, and look at it later. Stephen King mentions this in his book On Writing, for example.
This is the way to do it. First drafts are supposed to kind of suck and that’s ok. You can fix to later move on.
I really don’t believe that mister ‘book a year, every year, for decades and decades’ is letting manuscript sit in drawers for months and years… Not that it isn’t good advice … I just doubt that he’s personally following his own advice.