That is factually not true. There's been a few videogames in videogame history that were a notorious liability, and one even that contained a virus.
Besides, it is a known fact that a PS4 doesn't like improper restarts. I've experienced a couple myself, and it can sometimes take quite a while to get the thing to restore its system integrity. If a Playstation 4 (this also goes for PS3 btw) runs out of memory, or encounters a serious error, it will hard crash (The Ghostbusters videogame on the PS3 for example, struggles with certain scenes in the library section, and can hard crash. Same with Red Dead Redemption on the PS3.). This wasn't an issue with earlier consoles, because they didn't require the sort of manual shut down procedure that a pc requires. But a hard crash on the PS4 without the proper shutdown, can hit the console hard.
When I played Red Dead Redemption online with friends on the PS3, we did a little quest where you have to escort a minecart. We failed to complete it, when dozens of bandits spawned. So we backtracked to the mine to try it again, when we heard an odd and loud banging sound. Throughout the mine we kept hearing this deafening BANGBANGBANGBANG, and we had no idea what it was. As we arrived in the room where the minecart was the first time, we now found the entire interior of the mine filled to the ceiling with minecarts, all with physics. Instant crash. Took us a while to get the PS3 running again. It wasn't a simple matter of just rebooting it. So I can see how a console like the PS4, which is even more strict with proper shutdown procedures, could be bricked by a severe crash.