I've had that problem, working for hours but forgetting to save the file on a regular basis though usually saving as I go and I think there maybe a background auto-save in the newer versions though I've forgotten if there is.
I don't know what the hardware limits with the way I craft and layer my images, my files are ballooning. When I save these files for the first time, I'm generally fine, but as I add to the layers and adjustments, I'll do a "save," wait, then about 98% get the message that the file is too large...Then I'll save as a PSB, Photoshop Large file which avoids the 2GB PSD or the 4GB TIFF limits.
Most of the times of my recent "crashing" happens when I have several photos open and Nik will cause a freeze or a crash. Usually more annoying than a problematic issue, considering the age of my MacPro and all the grafting of hardware and software I've done in the last ten years.
Years ago I would be working with a client and we were so focused on our collaboration, I'd forget to save after and hour or two and it was a total system crash. However, by that time, we'd know what we wanted and simply started from scratch then have our finished image in 15-20 minutes, but even better.
I would try early on to save the file as a PSB file and then back it up on a second hard drive then work on the layers and see if that may help.