I got wired headphones after repeatedly losing airpods falling out of my ears onto the floor of planes. I like to sleep with my headphones in falling asleep to audiobooks, and I'm a side-sleeper so airpods would rub on the pillow and get lost in the seat machinery.

Wired headphones at least if they fall out are still connected to a rope to get them back!

For sleep a wired pillow speaker works great, the advantage being there is nothing to fall out of your ears, and you can isolate the sound so only you hear it through the pillow: https://www.amazon.com/Crane-Company-PS2-SoftSpeaker-Speaker...

For airplanes, Bose or Sony both have noise-canceling wireless headphones in over-ear format with battery life over 18 hours. I wouldn't try to side-sleep in either one, but the relative quiet on aircraft is wonderful, especially if you find yourself on a turboprop.