Critical Ofsted inspection played a role in headteacher's death, says her GP