Bulk publish modal is closing after publishing
### Node Version

22.11.0

### NPM/Yarn/PNPM Version

Yarn 4.5.0

### Strapi Version

5.7.0

### Operating System

MacOS

### Database

SQLite

### Javascript or Typescript

Typescript

### Reproduction URL

_No response_

### Bug Description

If some entries selected are waiting for action (meaning there is errors in their fields) and that I click "Publish", the modal closes.

### Steps to Reproduce

1. Create a content type with a field that can block the publication of an entry (ex: with a required property)
2. Ensure one of the entries contain an error
3. Try to bulk publish entries
4. See the modal closing

### Expected Behavior

The modal shouldn't close and only the entries waiting for action should remain.

### Logs

```shell

```

### Code Snippets

_No response_

### Media

https://github.com/user-attachments/assets/710aebc5-e40d-4862-97dc-a951e9793001

### Additional information

Found by @Dhruv-Maradiya in https://github.com/strapi/strapi/issues/22266.

### Confirmation Checklist

- [x] I have checked the existing [issues](https://github.com/strapi/strapi/issues) for duplicates.
- [x] I agree to follow this project's [Code of Conduct](https://github.com/strapi/strapi/blob/develop/CODE_OF_CONDUCT.md).