The first error was:
The tenant upgrade step to preserve integration IDs has failed because the integration records table with the ID 5151 does not have the following fields (with exact naming): Integration ID, Record ID, Table ID, Modified On. The integration records table ID is specified by the Integration Records Table configuration setting of the server instance.
Retry the operation when the problem has been resolved.