The bug
Standing inside a block or having a gravity enabled block fall on you triggers the elytra animation and pulls you down into suffocation.
How to reproduce
[media]Related issues
relates to
Attachments
Comments

[media]

This is also activated by being within a doorway when the door closes. No suffocation damage is taken in this case, but it looks strange visually.

Fixed in 19w14b.

Confirmed fixed in 19w14b.