Software cannot shut down a computer. It's impossible.
Sorry but this is just not true. Software shuts down a PC all the time, how do you think Windows can shut down a computer? Over the years I have seen Windows cause system shutdowns through file corruption as well. It is not common but it can and does sometimes happen.
also one thing ppl who trouble shoot computers sometime missed ..
- Cables (HDMI , Power extension . VGA) , Power Plug extension , unstable power (not using stabilizer/UPS) sometimes contribute to these random turn off..
- i would replace HDMI cables with higher quality cables for starter , not necessarily the most expensive but make sure it support the 4K
- also check if you used too much device on a single power chord extension , a cheap power extension unit can be bad for electric stability