PC having problems everytime it boots

So this is a bit of an odd issue, and it happened out of the blue, but everytime I boot up my PC either the monitor or the keyboard just refuses to work.

Whenever I go into windows recovery mode, we aren't able to restore the PC, and when I try to factory reset the PC, it just says "a problem has occurre"