There is no good solution for this problem. It is recommended to reinstall and deploy the apps in SharePoint to fix this issue.
Please confirm whether the apps that reported an error in site contents have been migrated successfully (whether the apps exist). if it exists, Remove app for SharePoint instances from a SharePoint site, then Add apps for SharePoint to a SharePoint site.
Appreciate your understanding. Have a good day!!
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
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.