A flying creature in flight falls if it is knocked prone, if its speed is reduced to 0 feet, or if it otherwise loses the ability to move, unless it can hover or it is being held aloft by magic, such as the fly spell.
If you’d like a flying creature to have a better chance of surviving a fall than a non-flying creature does, use this rule: subtract the creature’s current flying speed from the distance it fell before calculating falling damage. This rule is helpful to a flier that is knocked prone but is still conscious and has a current flying speed that is greater than 0 feet. The rule is designed to simulate the creature flapping its wings furiously or taking similar measures to slow the velocity of its fall.
If you use the rule for rate of falling in the previous section, a flying creature descends 500 feet on the turn when it falls, just as other creatures do. But if that creature starts any of its later turns still falling and is prone, it can halt the fall on its turn by spending half its flying speed to counter the prone condition (as if it were standing up in midair).