MC 1.16+
...
General Stacking

Food now stacks less based off hunger it heals. This makes soups stackable too. This is affected by Hunger & Health's 'Healing Food but less fulfilling' feature if active. If this feature is disabled, Soups will stack up to 16.
(Disabled by default) Items stack up to 48 instead of 64.
(Disabled by default) Blocks now stack less based off the material are made of. Configurable to only use a multiplier instead.
A blacklist/whitelist exists to prevent stack size changes from this Feature, by default contains Rotten Flesh to be able to trade it with villagers.

MC 1.16+
Custom stack sizes

You can configure a list of items or tags that must have different stack sizes.
By default Minecarts, Potions, Snowballs and saddles stack.