I've suggested 4 people over the last couple of years to get tested based on them casually mentioning some of these symptoms, and all 4 got diagnosed with moderate to severe sleep apnea (which is classified by the number of times you stopped breathing every hour - AHI, and the blood oxygen level). Getting tested is easy and cheap - you can find kits for under $100 which essentially are just a monitor you attach your finger + a few ECG stickers on your body which you use for a couple of nights. You can order them online without talking to a doctor, and you will get a prescription for CPAP if you are diagnosed as positive.
Treatment with CPAP is highly effective in eliminating these symptoms, and also reversing the brain damage (although MRI scans shows that it takes around a year for the gray matter in your brain to restore itself).
The other suggestion I'd make is that if you are overweight or obese, GLP-1 has proven to be also a miracle drug for sleep apnea. Unlike the study mentioned above, that essentially reduced the average AHI of participants by 4, which for almost everyone wouldn't cure them. Drugs like Zepbound have shown that over half are cured from sleep apnea after roughly a year of use. This is in addition to the other health benefits they provide with the weight reduction. Essentially. This unfortunately won't work for everyone, as weight is not the only cause of sleep apnea, but it is by far the most common one.