Hi Akash, This goes as a known issue as part of bz#2100602. 5.1 to 5.2 upgrade will not be supported.
The fix applied here has been reverted in BZ#2109151, a commit belonging to multisite-dynamic reshard that is not supported on 5.2
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (Moderate: Red Hat Ceph Storage Security, Bug Fix, and Enhancement Update), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHSA-2022:5997