When you throw an ender pearl and it lands on a wall with two glass blocks below or it hits the glass you will teleport into the wall and take suffocation damage. I included a YouTube video link I created below that demonstrates what is happening and how this can be recreated.
Video: https://youtu.be/QiR60es0GeY
[media][media]Linked issues
is duplicated by 17
12 more links
Same thing happens on Nintendo Switch as well