Trying to recall the title of this series, but I have had no luck doing so thus far. In the first episode, the protagonist is killed by a giant mecha landing on him, but it's pilot somehow brings him back to life.
He is then forced(?) to attend an academy with other pilots who are protecting the country/planet? It's very much a parody series and does not take itself too seriously.
I have been searching mecha anime series as well before asking, but there are far too many generics. I believe I last saw this series maybe five years, around 2014-2013.