Hello Loreaca,
Let's use the steps below to make sure that your iPhone has been updated to the latest iOS 17.0.1:
1. Back up your device using iCloud or your computer.
2. Plug your device into power and connect to the internet with Wi-Fi.
3. Go to Settings > General, then tap Software Update.
4. If you see more than one software update option available, choose the one that you want to install.
5. Tap Install Now. If you see Download and Install instead, tap it to download the update, enter your passcode, then tap Install Now. If you don't know your passcode, learn what to do.
You can also find those steps in this resource: Update your iPhone or iPad - Apple Support Updating should help to further isolate a potential software conflict.
Should that still persist, do you experience the same behavior when using your iPhone with a different audio device, or when listening to music from the speakers on your iPhone?
Also, does this only happen with the Music app, or does this occur with audio from other apps?
Let us know, and we'll keep moving forward based on those details.