Next time it happens, try to boot it in safe mode and rebuild the databases, restore file system, default settings etc, before you give up. Some of the options will make you lose your files, but if your ps3 isn't working what have you got to lose!!?
https://support.us.playstation.com/app/answers/detail/a_id/1488/~/safe-mode-on-ps3







