In modern computers, applications are insulated from the operating system and cannot cause this. It's not possible.
An application can crash or freeze, but not take down or restart the whole operating system.
Drivers can, however, they operate on a lower level. A buggy driver could do this, e.g. the video driver. Another common cause is failing hardware components. The very first thing to check is if some part of your machine may be overheating. Check for excessive dust accumulation on the fans.
Photoshop may well trigger something like this, because of what it asks the other components to do, but it cannot be the cause.