[TIMOB-15943] TiErrorController Backport for 3.2.x