What could cause this, and what can I do to fix it?
I think this stemmed from a change I made to a custom object, Invention__c. I deleted the default "Invention Layout" and replaced it with two others. When I did that I got the error "Entity of type 'Layout' named 'Invention__c-Invention Layout' cannot be found."
To fix that, I recreated the page layout and named it the same thing. Now I am getting this error. How can I recover the work I did in the scratch org? I don't mind making a new scratch org if I need to trash the current one.