I gave up and got up after listening to it in my head for an hour
Did you want to give up?
I don't know but I couldn't take it anymore.
If you wanted to work something out in your head, you should keep going until you finish. Not finishing things will erode your confidence.
I'm feeling okay to go back to it since I gave it a break.
I am glad that you are going to keep going at it. It will make you feel better to finish something you want to do.