Symptoms
You create a new document library, add the Site Pages content type, and migrate pages from another Site Pages library. When you try to edit the Pages at the destination, you get an unexpected error.
Details
The Site Pages content type will only work in the Site Pages library. This is a SharePoint limitation.
Solution
Use the default Site Pages library.