Reinstallation cloud app error : Authentication verification error (401): Could not find stored client data for <clientKey>. Is this client registered?

Hello,

I am developing Jira Cloud app and using the Postgres database. I am facing an issue when I am reinstalling my app. When I inspected the logs It shows an error
Authentication verification error (401): Could not find stored client data for . Is this client registered?
Found existing settings for client 3a64c394-awec-ery-8f07-c4e1e7d27fg21. Authenticating reinstall request

Registered life cycle events in atlassian-connect.json file “installed” and “uninstalled”
but I am not doing any custom functionality on ‘/installed’ or ‘/uninstalled’ routes.

Every time I am installing my app an AddonSettings record is created in the database but on the uninstallation, the record is not deleted. When I am reinstalling the app it shows the above errors in the logs.