My iPhone 6s kept restarting every few minutes till I replaced the new front camera with original one, fixed
open