In the last snapshot 20w46a, if you put the maximum number of DIFFERENT items in the bundle, and then get them out, the items will take up all the available inventory slots, and those that did not have enough space will simply disappear
Linked issues
Comments

Thank you for your report!
We're tracking this issue in MC-203925, so this ticket is being resolved and linked as a duplicate.
If you would like to add a vote and any extra information to the main ticket it would be appreciated.
If you haven't already, you might like to make use of the search feature to see if the issue has already been mentioned.
Quick Links:
📓 Bug Tracker Guidelines – 💬 Community Support – 📧 Mojang Support
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki
In creative mode this is normal MC-205071 whereas in survival they should be dropped