I was flying around in my survival world with friends when I got immediately killed by just going into a corner with full netherite armour with protection 4. So I went to testing and it turns out the "kinematic energy" is calculated in a very odd way. For instance, if you get a firework rocket and go up into the roof, you will not take damage at all and when the firework rocket runs out, the elytra isn't active anymore. When you rocket into a corner of a wall where you are facing the first wall alsmost directly and the other wall not you will sometimes you start taking damage at a very high rate. If you are a dev, you should really test this as it is completely broken. The video's I tried to send had an "Invalid token"? So sorry I can't upload those.
You can upload the video somewhere else (e.g. YouTube) and link to it if you can't attach it here.