Chosen Solution

I bought a batter from iFixit, chnage it. Looks like everything it’s working fine but every few minutes the iPhone shows a blue screen and restart.

nomeecognome, sounds like a battery issue. Check for pry damage on your logic board. Also reinstall the old battery to see what is going on. If the old battery should work, contact ifixit for a replacement battery.