That sentence perfectly describes me and it drives me crazy. Sometimes I have to just hit publish (or submit to a publication) to stop the unhelpful obsessing.
Self-awareness and setting clear work boundaries usually helps me, but sometimes i still wake in the middle of the night with something I absolutely have to do. I usually get up and write it down and then in the morning, it doesn't seem nearly as brilliant or important. Ugh!