Hey arun,
I had issues with something similar.
My problem was an outdated Postgres image version. If it is not already, make sure to bring it up to version 15. As per docs, versions 11 to 15 should be supported.
Since you are using Docker, you are likely using volumes for the database’s persistance. Postgres won’t like them being created by an older version, so you’ll likely have to wipe them. To retain the data, a rough idea is to: dump → stop and remove containers → remove the volume → deploy new version → drop newly created tables → import the dump → redeploy.
All the best.