Unhandled server exception (HTTP 500) by calling /content-manager/collection-types/api::article.article/{id}/actions/publish with invalid payload
### Node Version

20.18.1

### NPM/Yarn/PNPM Version

NPM 10.8.2

### Strapi Version

5.8.0

### Operating System

Linux (Debian/Ubuntu)

### Database

SQLite

### Javascript or Typescript

Javascript

### Reproduction URL

_No response_

### Bug Description

Sending a POST request with invalid JSON payload to endpoint `/content-manager/collection-types/{content-type}/{id}/actions/publish` would trigger an HTTP 500 server error. In the request, {content-type} is an arbitrary content type on the server. The request body contains invalid content such as `{"author": {"disconnect": [{}]}}`. The user needs to be authenticated to send such a request (i.e. having a valid `Authorization` header in the HTTP request, this can be done by login via web browser).

### Steps to Reproduce

1. Create a content type on the server (in my case, I used the default `article` type that came with the installation)
2. Create a resource under that content type (in my case, I created an `article`), note down the `id` of that resource (in my case, id=`vn6d15j25rvafu31tg5fvrd3`)
3. (As an authenticated user) Send a POST request to `/content-manager/collection-types/api::article.article/{id}/actions/publish`, with an invalid payload such as `{"author": {"disconnect": [{}]}}`
4. The server would respond with an HTTP 500 error.

### Expected Behavior

The server should validate the input payload and potentially respond with an `HTTP 400 bad request` for invalid payloads.

### Logs

```shell

```

### Code Snippets

_No response_

### Media

![Image](https://github.com/user-attachments/assets/7d7fc396-3e99-4c40-8df5-b550d2329d09)

### Additional information

_No response_

### 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).