Hello Friend, Good that you are seeking a help here. Sudden memory related issues is a sign of anxiety. You may be thinking too much about some specific topics and ignoring rest of the things around you. This causes lack of concentration and you tend to forget things.
No worries, anxiety is just like any other physical illness and can be treated through counseling session and few lifestyle changes or therapy
Next Steps
Feel free to reach me online through Practo app chat for further evaluation and recommendation.