Feel free to go for a suitable way to cancel your Apple Music subscription.
1) Settings -> iTunes & AppStore -> Click on your Apple ID -> View Apple ID -> Subscriptions -> Select Apple Music -> Cancel Subscription.
2) Go to Music app -> scroll to the bottom, click your name or picture at the top right -> Manage Subscription.
You may pick and use any of the methods above – they all are proven to work flawlessly.