Getting errors OSStatus 12912 and 12348

Hi, I try to export videos but I always get errors OSStatus 12912 or 12348 (randomly on the same project). I tried shortening the project (removing some clips) going from 40 minutes to 10 but nothing changes. Can someone please help me?