Having more than 5 effects applied at the same time causes them overlap when the player opens the menu.
To reproduce the bug:
1. Start a world in the creative mode having commands enabled
2. apply 6 different enchantments using the /effect give <PlayerName> command making them infinite, like:
/effect give <PlayerName> minecraft:absorption infinite
The effect overlapping becomes worse as more effects are applied to the player, making the player unable to know the duration the effect has or even the name and level of the effect
in the screenshot1, the player has 6 effects applied.
in the screenshot2, the player has 17 effects applied.
in the screenshot3, the player has all the effects that can be applied with the /effect command to the player.
Linked issues
Attachments
Comments 2

Thank you for your report!
We're tracking this issue in MC-234851, 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 (Technical Issues) – 📧 Microsoft Support (Account Issues)
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki
This ticket duplicates MC-234851.