The number of teaching professionals taking time off because of poor mental health has doubled over the past three years, with huge spikes at the end of each term as burnout peaks.