Chosen Solution
Model : Redmi Y2 Problem: The phone keeps on restarting and stuck on boot loop. sometimes it goes until the lock screen and restarts again.
This sounds like a faulty battery. Replace the battery and it should be fine.
Please flash this phone and then tell me