I got the same error first. But then this worked for me:
- Sign in to App Store Connect (appstoreconnect.apple.com) with your developer account.
- Select "My Apps" from the top menu.
- Choose the app you want to remove from the list of available apps.
- Click on the "Pricing and Availability" tab.
- In the "Availability" section, click on the "Edit" button next to "Territories."
- Deselect all territories where the app is currently available. This will effectively remove the app from sale in all territories.
- Click "Done" and then "Save" to confirm your changes.
When the processing is done (which can take a few minutes), the app will be be available in any territory and won't be searchable. Afterwards, when I go back to General -> Additional Information, I was able to remove it without errors
Hope this helps!