See your doctor soon
There are lots of things that can cause those symptoms.
Some are severe stress
, medical issues that are affecting your liver, kidney or pancreatic functions with toxic affects on your brain & ability to think clearly. What most folks worry about under the circumstances you describe is that they are developing alzheimer's dementia
. Don't just worry, go and get a medical evaluation & ease your mind.