Have you tried disabling each of the constraint under the NOT, individually until it works?
Is the macro triggering at all, sometimes the OS kills MacroDroid and can be fixed by dontkillmyapp.com
I would advise against this as scammers will know your number is active.
If you want to do so anyhow, you'll need to tell us more about how this app works as I don't use it. For now, you can do this with MacroDroid itself:
Check the channel you're playing media with. If the media is playing through media volume it may not work - it may be mute.
Also there is no contraint tk stop it playing before 5, see time of day in constraints
Please try NetGuard firewall from F droid. It auto starts itself properly and has stronger features.
You could use MacroDroid to detect shutdown and turn off WiFi. Search the store for 5356 or https://www.macrodroidlink.com/macrostore?id=5356, it's called new triggers and contains a shutdown...