Obstructive sleep apnea affects 75% of Parkinson's patients who develop symptomatic brain swelling around deep brain stimulation electrodes, compared to just 30% of those without complications. Among 121 Parkinson's patients undergoing DBS surgery, those with sleep apnea showed significantly lower oxygen levels during and after surgery, with brain edema appearing 3.5 days post-operatively on average. This finding connects two critical aspects of Parkinson's care that haven't been previously linked. Sleep disorders are exceptionally common in Parkinson's disease, affecting up to 90% of patients, yet their impact on surgical outcomes has been understudied. The research suggests that intermittent oxygen drops characteristic of sleep apnea may prime brain tissue for inflammatory responses around implanted electrodes. Intriguingly, REM sleep behavior disorder appeared protective against brain swelling, though the mechanism remains unclear. The study's retrospective design and modest sample size of 121 patients limit definitive conclusions, and sleep studies were available for only 26 participants. As this preprint awaits peer review, the findings require validation in larger prospective trials. However, the results suggest preoperative sleep evaluation could become standard practice before DBS surgery, potentially preventing a complication that affects up to 15% of cases.