Summarylimit_count item modifier can create item stacks containing more items than their max_stack_size.
Steps to Reproduce
Give yourself a stick
Run
/item modify entity @s hotbar.0 {function:"limit_count",limit:{min:99}}
Expected Result
The command either fails or sets stack count to 64.
Actual Result
The game sets the stack count to 99, despite the max_stack_size being 64.
I've removed the part about the crash, as it's tracked in MC-269680.