The audio engine / volume control in Apple Music for Windows is long-term broken, if it ever worked. I've even canceled my subscription because of this, but even after a year when I resumed my subscription, nothing got fixed on that matter. Reinstalling Apple Music slightly always helped. Slightly, but not definitively, as it soon starts to bugging out again.
It's really annoying, as I'm constantly trying to replay the song, sometimes on the second run it works normally, sometimes it mutes the song for even longer than the first time, alternatively the song plays at lower volume than I have it set (100)... So what I realized, the in-app Volume Control is totally broken. As soon as you change the volume, it usually fixes the muted part immediately. The bad thing is, sometimes the volume slider is completely irresponsive or works with a long delay of several units or even tens of seconds. Try to click "mute sound" button on the left side of the volume slider sometimes. For me, it oftentimes does not work at all. But when i "unmute" it back agian, the sound drops to circa 50% volume, contrary to "100" on the volume slider, and by any movement it's hard to make to volume louder back again, until you skip to another track and back forth.
The entire app's settings system is dodgy, as you need to restart entire Apple Music app to make them to take effect (e.g. disabling Dolby Atmos tracks).
I hate to say that, but the Apple Music for Windows is a literal trash, and I wonder how it could ever pass any output quality control. It's in an alpha version state, not even in beta.
Apple Music for Android works surprisingly well, and I would like to see Windows version to get fixed also.
So I beg you, please, look into the volume control / audio engine / settings storage.
Alternatively, introduce option to use WASAPI Exclusive API as a sound device output to bypass the Apple's broken in-app volume control.