You should add an option that players can use to limit how many items are being crafted.
In crafting menu you can add a slider with the min / max values:
- max value: the number of items you can craft of that type (you have that value currently in the game)
- min value: 0, which will be the same as it is now, it will craft until you stop.
Next to the slider you can also add a box where players can write the number they want. It is more of a quality of life feature then a required one.