Thank you for posting in Microsoft Q&A forum.
It seems that some data cannot be found in the database, have you done any special operations before the deployment could not be created?
You may try to restore the site from a ConfigMgr backup from the maintenance task to see if it helps.
If the response is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.