Getting too much or too little sleep may increase the risk for cognitive decline or dementia in older adults, according to a study published Monday by JAMA Network Open.