I have a Lenovo g50-45 and it has exactly the same problem. With no apparent reason it shuts down and the fan spins at 100%.
This happens randomly but mostly when I try to install Windows 10 with the Media Creation Tool from Microsoft or when installing too many updates. HWmonitor reports...