Translation:I often get headaches while I'm listening to music.
Odd! I would say that as "Doctor, when(ever) I listen to music I get headaches".
I never cease to be amazed at the variety of the English language.
(And it makes it hard sometimes to decide what's natural native usage and what's a second-language speaker mistake, since we see a lot of those on Duolingo from people for whom English is not a first language but who don't have a course based on their native language.)