I sometimes do that when I play an instrument. I play, it is not perfect enough and then I start again and again. It can be that I don't even reach the end of the first line for many tries because of mistakes that are not that important, but nevertheless I cannot accept them and start again.
But it depends on my mood a bit. I have days when I do that more often and then there are days when I can tolerate my own imperfection to a degree that I can finish a song even when I make mistakes. I have to do that at least when I play for others because they don't want to listen to the beginning again and again but listening to the whole song.
_________________
English is not my native language. So it is possible that there are mistakes in my posts. Please correct me, I´m still learning.