JSON Error when creating or updating a page

When trying to update a page or when creating a new page, when I try to publish, I get the following error:

Updating failed. The response is not a valid JSON response.

Wordpress Version: 6.1.1

Hey there

Please try this fix here: How to Fix "Updating Failed. The Response is Not a Valid JSON Response"