This is harmful to your health. It is best not to listen to music or other radio when sleeping at night, especially not to stay up all night. The eardrum in the ear works for a long time. If you don't get proper rest, it may cause hearing damage and even deafness in the long run.
Sleeping at night is the best time to relax. Sleeping in a quiet environment is good for the human body. In addition, listening to music and sleeping may make the brain in a sub-excited state and cannot completely relax.