It's ok to listen to music. You can listen to something relaxing. Never listen to exciting music such as rock and roll. At the same time, we should also pay attention to the method. Wearing earplugs will have an impact on the eardrum, and it is uncomfortable to hold it when you fall asleep.
it's best not to listen to English, because you can't concentrate at this time. If you concentrate, you can't relax. How can you sleep? And if you get into the habit after a long time, you will be unable to concentrate when you really listen to English!