There’s probably way more going on, but the glymphatic system impairment caused by (proper) sleep deprivation could be one of the big factors. Basically the trash can’t be taken out. Here’s a paper that explores neurological disease as a result of that:
https://www.ncbi.nlm.nih.gov/pmc/articles/PMC6261373/