I don't have an answer. It has happened to me only once (2.4.5), using the file browser for a local file. Unfortunately, I can't remember the file or its size but think I was trying to insert a small image into a label. After restarting moodle, it went away.
General help
Invalid JSON string with small file upload
This discussion has been locked so you can no longer reply to it.