Verb to think a lot about something in an unhappy way
brooding
I spent the week brooding about my breakup with my longtime girlfriend.