I tried saving a file as a PSD but kept getting this error.

I couldn't get it to work with PSB either.
The file is just a short video and the layers are just some JPGs and PNGs I copied from Google.
I was able to render the video fine, but I'd still like to save the PSD
I tried copying all the layers into a new document one by one while saving after each paste. However, I would still get the same error after a seemingly random number of layers (around 7-10 layers in). The original file has a little over 30 layers with a timeline. Removing the timeline doesn't seem to work either.
Regrettably, I didn't save the file anytime before I finished the file, as it's just a bunch of photos from Google. But seeing as a new doc breaks at around 10 images anyway, I don't think that would've mattered. I don't even know if the file did an auto-recovery save at any point either.
How do I fix this without having to restart Photoshop?