That error happened to me in a race of the COTC. That error means that the application (in this case, the game) had an error. If that error isn't usual in your PS4 it's like when your PS3 games or PS2 games got frozen, but in this case the game is an application, and due to the error you leave the game. If that error is getting usual everytime you're using your PS4 (playing GTA or other games, and when I mean usual I mean you can't play anything because you're getting kicked out always) your PS4 has a problem, theorically a hard drive problem.
In your case it seems it only happens when you're exporting videos, just like my case. My theory is that it's a loading problem (I don't know how to justify this, it's just a theory because if it was a hard drive problem my PS4 would be broken). I can only tell you to keep trying until you can, sometimes I could finish the race and sometimes not. I don't know if this influences or not but I deleted some data of my PS4 (videos, photos, useless demos...), since that everything in my PS4 loads faster.