The list of possible reasons is long and not all can be tested: long Covid, ME/CFS, diabetes, sleep apnea, depression, vitamin deficiencies.
I've tried to practice more sports, stopped all coffee and alcohol for a month, slept for longer, nothing changed, but I should continue some of this anyway.
There's also this documentary on long covid or me/cfs where some people have it so much worse, can't get out of bed like the Youtuber PhysicsGirl... Devastating.
Early studies seem to indicate permanent brain damage because of viruses like Covid, so there might be no chance of recovery, just learning to live with it.