To overthink / To rack one's brain
Literally 'to eat one's coconut (head)'. Describes obsessing over something or overthinking a problem until you drive yourself mad.
Stop overthinking it, it's not that important.
I've been racking my brain over that decision.
—Are you still thinking about that? —Yes, I'm overthinking it.