Milk can be drank indefinitely, additional milk in inventory may disappear if you attempt to drink milk, the mining fatigue spell glitches and reactivates immediately twice if you attempt to drink milk.
Linked issues
is duplicated by
Comments

Based on the above comment, I have removed the fix version.

it's in 1.13.1 also.

So last night I had a problem with milk and the version was 1.13 if I held a milk bucket in my hand and went on crafting or in a chest it would say that I drank it then after a while of doing this it gets rid of your buckets and then if u log off and get back on u would have your buckets back but sometimes it dups and I update to Minecraft 1.14 and it steel does it. By the way this is annoying when trying to make cakes so please fix this in 1.14.1
Still able to recreate this bug in 1.14.0.50 for some reason