I experienced something similar while at UIUC for math, but I passed the comprehensive exams solidly (my first attempt at two of them were thwarted by abnormally difficult exams where almost no one passed).
I ultimately left, but largely due to non-academic reasons combined with the state of Illinois stealing the university's budget allocation. Teaching wasn't too bad, but life in the tech industry sure beats academia.