During my late-teens/early 20s I competed at a high level in another sport. Quite different to bike racing, and far less physical injury risk, but the themes are identical. Those 5 years saw some of the biggest highs and lows of my life. Ironically the lowest low came right after our biggest success, when "normality" resumed and day-to-day life didn't seem quite worth it any more. Other than that, the grind, the training, the complete bomb-outs, the near-misses, led to a cycle of one of our team, at any one point in time, needing motivational support. And, actually, I think our most successful season came not because we were training harder/smarter or were generally better than everyone else, rather that we'd figured-out, as a team, the tricks to maintaining our spirit and morale no matter what happened, thus we were better placed to take advantage of opportunities as they came our way (success in sport is probabilistic!).*
So, my advice is this: completely separate from training, nutrition, race strategy, etc., view the art of keeping you and your team-mates happy and motivated as a completely separate challenge, and something to master. Work on it consciously. SpinnerTim's suggestions are excellent, particularly finding ways of keeping perspective and enjoying the sport and the company of your team-mates for their own sake. Also, try to assess your performance independent of results, because you can only control what you can control.
Good luck, where you are is not a nice place to be, so you have my sympathies, but things do get better!
*(The funniest instance of this - in hindsight, though I was freaking out at the time, because we had just been trashed and I could see things falling apart - was my captain/room-mate, mid-way through a major competition, completely flipping out and saying to me, "I need to go and get drunk" - I knew our coach would have hit the roof but I figured my captain's mental condition was more important than his physical one at that stage, so we snuck out of the hotel and hit the town in quite a large fashion. Next day was written off - no competition, phew! - but the day after he regained his head and we managed to recover as a team to do pretty well.)