This is a long-time problem. If you create an action and photoshop crashes, you lose your action. Photoshop should save actions as you go instead of saving them after Photoshop closes. I've tried to get into a habit of creating my action, closing Photoshop, and then re-opening Photoshop, but I realized that I should have made this request several years ago. Hopefully this gains some traction.