A coroner has warned further lives may be at risk after a hospital trust’s failures contributed to the death of a much-loved teacher.