What to do when photoshop abruptly corrupts your layers on your file

What to do when photoshop abruptly corrupts your layers on your file