Well... I'm not a great guru, but I'll still try to give you my 2 pennies.
Consider that it's almost impossible from an outside point of view, to address the issues very precisely. You probably have to add a few details concerning your process, but still you might miss some important detail, since being aware of that detail would automatically solve the problem.
Anyway, the flatness issue is probably the simplest factor here: the negs are very likely to be underdeveloped, especially considering that you said temperature was probably drifting to lower values. I have some difficulties in holding the temperature steady, as well, but I always check the temp one minute before developing would be over. If the temp has drifted (typically it decreased), I will correct the developing time on the fly.
Try this technique, and consider that, even after you get the time vs temperature right, you might still need to adjust your developing time to have negatives that you would consider "normal". That is up to your testing.
Now the tough part: grain. I don't know Tmax developer, so I can't shed any lights on how it behaves, but I can tell you that FP4 in 120 should look virtually grainless at "normal" magnification. The first thing that comes to my mind would be some mistreatment of the negative, from a temperature standpoint in particular. Were the stop, fix and wash solutions within a reasonable temp range? If -say- you develop at 20° but your stop is at 5° you might have grain, or "microreticulation" issues.
That's just an idea; you are likely to get more competent insights shortly from other folks!
See ya.
M