So I had the same problem, I still do, and as I have read on other thread here, it can be caused by having too many layers (which I did, around 80). And I would click that amount of times on the 'ok' button in the error window, and nothing would happen.
This problem occurred when I had After Effects, Premiere Pro and Adobe Audition Open at the same time:clown_face:. I work on Mac. I cleaned the cash in After Effects and Premiere Pro. And then I closed all of those. After that, the photoshop file magically opened without any error messages. Maybe try this