Weirdness on my PC: Unstable electricity? Old Power Supply? Or What?

About a few months ago, I encountered two really annoying issues. One was that my computer really loved to restart itself quite randomly, most of the time when idling or doing a simple task like watching YouTube from one tab…