Scientific Problem solving and Wu Wei I am a mathematician, and I often find myself obsessing over the problems that I'm trying to solve.

While I have made incredible progress over the last 6 months with my practice. I find myself suffering, sometimes for a few days in a row, because of my obsessive thinking towards the problem. It's as if my entire consciousness became the problem and that I could not find any relief until it was fixed.

I enjoy getting consumed by what I do, I also know that being consumed AND remaining grounded is much more powerful. Any tip? / similar experiences?
This is something I face too. I work in the IT industry building automation systems. 

This is my own opinion on the matter. I think most people, including me bias toward a belief that being consumed or obsessed by something (some call it passion) gives great outcomes. This is correct. However; I believe far more intelligent people exist who are able to achieve much greater results while remaining detached. How this can be achieved is a tricky subject and might be out of scope of this forum. 

For example, the Buddha himself knows all sciences that should be known. Ven. Sariputta was highly intelligent. All of them practiced detachment and still remained sharp and more intelligent. 

So, maybe practicing dhamma might help us.