You can call it Critical Voice or your inner editor or any number of things, dealing with it is something that every writer has to come to grips with to avoid analysis paralysis.
https://www.deanwesleysmith.com/beating-critical-voice-for-fiction-writers/