[Redmi Note 10 Pro] Case_:
So I've finally tried this ROM and have also been hit with the "PIN screen loop" issue (where the phone semi-restarts after showing the screen to enter PIN).

What I've been able to figure out so far - it doesn't seem firmware related, happens the same on 13.0.8, 13.0.10 and the newest 13.0.13. However, it *does* seem to be related to screen brightness, oddly enough, and more specifically to adaptive brightness. If you cover the brightness sensor so the screen immediatelly darkens as the PIN screen shows, the loop doesn't happen and you can enter PIN and use the phone normally. You can lift your hand from the sensor pretty much instantly after the screen darkens a bit, you don't have to keep covering it. Also, you don't even have to cover the sensor, it's enough if it's dark enough around you so the screen brightness lowers automatically in response. And finally, if you turn off adaptive brightness completely, when you reboot, the issue doesn't seem to come up at all, the phone seems to start just fine.

I was racking my brain after the issue first showed up for me, because I did several different things previously as I was setting the phone up, and first thought it was related to something else entirely. But then I tried to capture the system log as close to when the loop restarts as possible, and eventually noticed this:

08-14 12:21:57.123 3139 3173 D ColorDisplayService: setUp: currentUser=0
08-14 12:21:57.127 3139 3236 E AppHibernationService: Attempt to call isHibernatingForUser on stopped or nonexistent user 0
08-14 12:21:57.142 3139 3183 I ActivityManager: Start proc 4186:com.google.android.apps.wellbeing/u0a101 for on-hold
08-14 12:21:57.166 3139 3173 D ColorDisplayService: onNightDisplayAutoModeChanged: autoMode=0
08-14 12:21:57.166 3139 3173 I ColorDisplayService: Turning off night display
08-14 12:21:57.166 3139 3173 D ColorDisplayService: Setting bright color reduction level: 50
08-14 12:21:57.167 3139 3218 E AndroidRuntime: *** FATAL EXCEPTION IN SYSTEM PROCESS: PowerManagerService
08-14 12:21:57.167 3139 3218 E AndroidRuntime: java.lang.IllegalArgumentException: Invalid value: NaN for setting: screen_auto_brightness_adj
08-14 12:21:57.167 3139 3218 E AndroidRuntime: at com.android.providers.settings.SettingsProvider.validateSystemSettingValue(SettingsProvider.java:1950)
08-14 12:21:57.167 3139 3218 E AndroidRuntime: at com.android.providers.settings.SettingsProvider.mutateSystemSetting(SettingsProvider.java:1918)
08-14 12:21:57.167 3139 3218 E AndroidRuntime: at com.android.providers.settings.SettingsProvider.insertSystemSetting(SettingsProvider.java:1840)
08-14 12:21:57.167 3139 3218 E AndroidRuntime: at com.android.providers.settings.SettingsProvider.call(SettingsProvider.java:462)
08-14 12:21:57.167 3139 3218 E AndroidRuntime: at android.content.ContentProvider.call(ContentProvider.java:2464)
08-14 12:21:57.167 3139 3218 E AndroidRuntime: at android.content.ContentProvider$Transport.call(ContentProvider.java:512)
08-14 12:21:57.167 3139 3218 E AndroidRuntime: at android.provider.Settings$NameValueCache.putStringForUser(Settings.java:2867)
08-14 12:21:57.167 3139 3218 E AndroidRuntime: at android.provider.Settings$System.putStringForUser(Settings.java:3574)
08-14 12:21:57.167 3139 3218 E AndroidRuntime: at android.provider.Settings$System.putStringForUser(Settings.java:3558)
08-14 12:21:57.167 3139 3218 E AndroidRuntime: at android.provider.Settings$System.putFloatForUser(Settings.java:3859)
08-14 12:21:57.167 3139 3218 E AndroidRuntime: at com.android.server.display.DisplayPowerController.putAutoBrightnessAdjustmentSetting(DisplayPowerController.java:2138)
08-14 12:21:57.167 3139 3218 E AndroidRuntime: at com.android.server.display.DisplayPowerController.updatePowerState(DisplayPowerController.java:1285)
08-14 12:21:57.167 3139 3218 E AndroidRuntime: at com.android.server.display.DisplayPowerController.access$700(DisplayPowerController.java:101)
08-14 12:21:57.167 3139 3218 E AndroidRuntime: at com.android.server.display.DisplayPowerController$DisplayControllerHandler.handleMessage(DisplayPowerController.java:2467)
08-14 12:21:57.167 3139 3218 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:106)
08-14 12:21:57.167 3139 3218 E AndroidRuntime: at android.os.Looper.loopOnce(Looper.java:201)
08-14 12:21:57.167 3139 3218 E AndroidRuntime: at android.os.Looper.loop(Looper.java:288)
08-14 12:21:57.167 3139 3218 E AndroidRuntime: at android.os.HandlerThread.run(HandlerThread.java:67)
08-14 12:21:57.167 3139 3218 E AndroidRuntime: at com.android.server.ServiceThread.run(ServiceThread.java:44)

Note in particular the "AndroidRuntime: java.lang.IllegalArgumentException: Invalid value: NaN for setting: screen_auto_brightness_adj" part. Seems like something is not defined correctly, at least not at the moment the issue manifests.

I will try to report this on Pulkit's GitHub if that's the correct place to do so.