FYI, use a web browser and turn your messages to friends or no one only. Use the Sony messaging app to delete messages before going onto your console. Apparently people are sending a malicuous message that soft bricks your console(you'll have to factory reset). Its mostly happening when people are in game, salty players send a message from what im seeing online.
Until Sony makes a update, best defense is to set your messages to friends only or no one. Some threads are stating the notification of the message is doing it as well, so if you can turn off notifications that should help to.