After plugging power switch the computer turns on and off and repeats

When I plug my power switch my computer starts automatically turn on and then off and repeats this until I pull out the power switch. Before this happened, the computer was working good and while watching a video on chrome browser it got stuck and then after several minutes it turned off and then started the repetition process I described before.

crwdns2934089:0crwdne2934089:0 crwdns2934093:0crwdne2934093:0

crwdns2934109:0crwdne2934109:0

crwdns2889612:0crwdne2889612:0 0
crwdns2934285:0crwdne2934285:0