All academics have had that anxiety dream about standing up to give a lecture, only to realise they have forgotten to prepare anything – or to put on any clothes. But real teaching failures are rarely so disastrous – and many are teachable moments. Seven academics tell us their hard-earned lessons