The invalid classes can cause prebuild conclusion cache step to fail during the upgrade process. However, this is not a showstopper to proceed ahead with the upgrade. During the next upgrade, set the entry build.conclusions=false in setupDatabase.properties file. This will disable prebuild of conclusion cache during the Upgrade process. The conclusion cache will automatically get built during the engine start-up process.