the higher quality the scientific research, the harder it is but also realize that early in ones career, one cannot realistically expect earth-shattering results (and not even later also!) you dont mention how you arrived at the problem you were given. was it from an advisor? did you come up with it yourself? if it came from elsewhere its a lesson on finetuning/adjusting your personal discrimination/ parameters/ boundaries. problem selection is critical. dont "put all your eggs in one basket". if you are focused on one topic, look at multiple ways to work on it and multiple open problems in that area. realize that some problems cannot be solved and a big part of the game is developing a personal intuition on which ones can/cant.
scientific research is fundamentally about the unknown. esp in TCS even experts routinely admit there are vast swathes of important unknown aspects & even admit to personal frustration/disappointment on that (once wanted to create a soft-question or big-picture on that here but think it surely would get downvoted/closed). look at the "big picture". despite over a century old, TCS is still a rather young science. in many ways one could build a case and realize that TCS is one of the hardest scientific fields in existence among all scientific fields.
try reading books/biographies about the historical greats in the field, they all struggled with serious research hardships and setbacks throughout their careers. we also are very lucky to have a very good picture of most of their lives. as Einstein said (in a letter to a child, but widely quoted & taken to heart!)
Do not worry about your problems with mathematics, I assure you that mine are far greater.
and of course there are highly accomplished experts/leaders who are alive right now and writing or even blogging about their research practices and careers! blogs give an amazingly candid/ personal/ visceral snapshot of research-in-progress/motion that has never before been seen in scientific history. again we're very lucky to have blogs and brilliant researchers who are willing to spend substantial time on them (this was not the case years ago and many scientists and professionals were justifiably reluctant to go into blogging). two standouts in particular in TCS, RJLipton and Fortnow blogs which both cover great behind-the-scenes verisimilitude. another remarkable/inspiring story circulating recently is that of Zhang.
make sure to socialize with your academic peers at conferences & elsewhere (even somewhat on the internet if possible). you wont feel so alone, youll see that struggle is an inherent part of the picture. research is a fundamentally different activity than what precedes it in education, its about a difficult/challenging shift from the known to terra incognita. the old adage written on centuries-old map regions prior to discovery of the "New World" still applies: here there be dragons.
maybe somewhat synchronistically, here is a neat paper that has been circulating through many scientific blogs lately, it has caused quite an impact/stir, do a search to see all the reactions to it along the lines, "wow isnt it great someone said that, how Ive been feeling". also am including some other refs that can be helpful in describing the picture.