My uncle bought a used iPhone 7 as a second phone. Battery was replaced (device was a refurbished one). Its been a week or two since and he says that device is turning off randomly.

According to what he said; It turns off inside and outside, so it is not about cold weather. It turns off when making a call. Whole backside of the phone is heating up and not just a specific area.