Add validation before API import from BitBucket Server
### Problem BitBucket Server importer used via the UI and API uses the same logic to import the project + repo, apart from extra [validation](https://gitlab.com/gitlab-org/gitlab/-/blob/master/app/controllers/import/bitbucket_server_controller.rb#L100-L108) done (before the import) on the UI and not the API. See [comment](https://gitlab.com/gitlab-org/gitlab/-/issues/295622#note_1616127209). ### Solution Consider to add the same validation done in the UI to the API.
issue