The simplest soloution would be reducing the maximum stack sise for the brewing stand ingredient, since that was what caused the need for the 'fix' in the first place.
I feel it slightly unfair to say it's a duplicate, though it not working may be intended for things such as dirt, I doublt that it is the same for containers; especially since naming them has the purpose of modifying the name in the gui.
The simplest soloution would be reducing the maximum stack sise for the brewing stand ingredient, since that was what caused the need for the 'fix' in the first place.