MBP keeps restarting during the installation of the OS
Hi, everyone
I just got a brand new 13' MBP 2018 with touchbar, 16gb ram and 512GB hard disk. When I set up the macbook the very first time I tried to restore from my time machine but the macbook turned down during the restoring and was followed by a strange sound like the fan suddenly spins very fast and stopped after a second. Then I tried to set up the account first and then restore from the time machine within the OS, but the same issue happened. And there was a time when it restarted, there was no system file found, only a file with a question mark flashing at startup. So I tried the instructions on the Apple websites - restored from the time machine from the recovery mode, reinstalled the OS from the recovery mode after erasing the hard disk. However, nothing happened - the mac shut down and restarted during the installation of the macOS or when the time machine transfers the files to the mac. I even tried to reset smc and pram and then proceeded to reinstall the OS, but the issue persisted. I am wondering if anyone had the same issue? Is this a software problem or a hardware problem - presumably the problem of the hard disk in the sense that the mac shuts down when I install OS or write files to it from backups? Any idea or solution is appreciated.
Drake
MacBook Pro (13-inch, 2018, 4 TBT3)