hardware – My Android phone keeps restarting in short cycles

I have Xiaomi Mi A2 and yesterday when I was using it, it started to restart continuously only loading the android one logo then crashing again. I’ve tried things like holding down power+voldown and power+volup to reach the safe boot, but the thing is that it restarts again before even loading it. I also though the power on button might be stuck so I’ve tried to click it through multiple times but does not seem so. I also tried removing SIMs. I did not install anything new in a long time. It discharged itself after multiple hours of repeated restarts.

Anyone has the same experience and would know what to do? Also is there a way to at least wipe the phone contents somehow before returning it to the shop?