Bose makes a product specifically for sleeping. I don’t have any experience with them myself.
https://www.bose.com/en_us/products/wellness/noise_masking_s...
https://www.bose.com/en_us/products/wellness/noise_masking_s...
“Unlike headphones, Sleepbuds™ don't stream music or podcasts. They play content only from the Bose Sleep app.”