I am having the same issue.
I sent it to Samsung to repair and the device was sent back to me saying it was fixed, but as soon as I put my SIM in, the phone got really hot and turned off.
I was surprised they sent the phone back without resolving the issue (assuming the techs may have dealt with similar issues). I had first thought it was the SIM, for which i got a replacement SIM, but the issue was only with my S7 edge phone, I am currently using the same SIM with my old HTC M8, which is working perfectly fine. The phone was sent back to Samsung am hoping I get the phone back, with the problem fixed. I didn't expect this from such an expensive phone and I was hoping to face better customer service.
If the problem is not rectified the 2nd time. I am hoping Samsung gives me a replacement, as I do not want to face this issue after my warranty expires.
Before I had sent the phone it, I tried soft reset, hard reset, factory reset and the samsung tech had flashed the phone, none of these resolved the issue.