If you spam right-click when you get off an entity in any way (getting kicked off when on a horse or pressing left shift) whilst you are looking at the ground, then it warns the player about the height limit for blocks being 319. This doesn’t always happen so try reloading the world a few times until it does work.
Steps to reproduce:
1. Join a world
2. Mount an entity
3. Look down (make sure you can reach a block)
4. Start spam right-clicking (Use an autoclicker if necessary)
5. Dismount
Thank you for helping us improve Minecraft! We saved your files: