The script doesn’t actually have to go into the document head. From the Google Developers page:
JSON-LD* (Recommended)
A JavaScript notation embedded in a script tag in the page head or body.
If you need schema markup specific to each individual post you can edit the HTML in the WYSIWYG editor, (or, if using the Block editor do an HTML block), so that it appears at the end of each post.