Opioids are often prescribed to help those with chronic pain manage sleep problems associated with their condition. New research reports opioids effect on sleep quality is limited and of poor quality. Additionally, opioids can increase the risk of sleep apnea.