@coasterspaul your way does works, and is the correct way.
Because you are modding the game lol
Anyway, I tested and it works with just changing the user_settings like in the post coasterspaul mentioned.
All you need is to go into that file and inside mods → stonehearth add the “infinite_inventory”:true. Note that each line has to end in a comma except the last one.