“Hey Siri” does not respond while playing music
As far as I'm aware Hey Siri isn't actually supported while music is playing.

People on Reddit have reported the same issue about a year ago - https://www.reddit.com/r/iphone/comments/7ssnz7/hey_siri_not_working_when_music_is_playing/