Study reveals risk factors for rare sleep disorder