After some experimenting and troubleshooting, I’ve determined that group_id must be a required argument in the create_item mutation.
The example code here shows the mutation without that argument: Overview of GraphQL
However, it was only after putting in a group_id like in the example from the documentation here that the 500 error went away: Items
Can you please test and confirm if this is an issue, and if so, update the documentation?