"Runtime Error" ?

I'm using Photoshop CS, and whenever I run certain actions (I really can't tell which ones are the problem ones), about 10 minutes later, an error pops up. So when I click OK, Photoshop closes and I lose everything I had unsaved. Why am I getting this error?

Thanks in advance. :)