You don't need to format data if you are just upgrading. For me it works.
But I have a new bug: Mi10 on 12.2.7 the AOD is disabling itself after some time. I'm not sure if it is relating to new notifications. When I unlock the device and lock it again AOD is showing up again.