When my daughter wouldn’t sleep through the night, I wondered: Was this a medical issue, or a psychological problem she’d inherited from my family?