Sleep apnea increases the risk of having atrial fibrillation, or AFib, by approximately two to four times. This is especially true among people with severe sleep apnea. Treating obstructive sleep apnea (OSA) with regular use of a continuous positive airway pressure (CPAP) machine during sleep reduces the risk of AFib recurrence.