This is so important. I got diagnosed with mild sleep apnea, and I was "only" waking up 5-10 times per hour. After getting situated with a CPAP, my mood and mental clarity has improved 3-5 fold. I had similar symptoms to OP - feeling like I was losing my memory and mental capabilities.