Hello, for the past few weeks my computer has been shutting down without any notice. I have no idea why this is occuring; virus, hardware failure

It usually happens when I run demanding programs, for example, when using Nero. All help is greatly appreciated.