Hi shivanarain.
Welcome to Apple Support Communities. We understand that you're having an issue with your Apple Music. We'd like to help.
First, to clarify, are you seeing your playlists be deleted or is it a different queue? When you see music is deleted, do you see any trends like it's specific albums or songs? Which iOS version are you running? You can find that in Settings > General > About.
Have you forced Apple Music to close and restart your iPhone to see if that helps? Follow these steps to get that done:
Close an app on your iPhone or iPod touch - Apple Support
iPhone X and later
1. From the Home Screen, swipe up from the bottom of the screen and pause in the middle of the screen.
2. Swipe right or left to find the app that you want to close.
3. Swipe up on the app's preview to close the app.
iPhone SE, iPhone 8 and earlier, and iPod touch
1. Double-click the Home button to show your most recently used apps.
2. Swipe right or left to find the app that you want to close.
3. Swipe up on the app's preview to close the app.
Restart your iPhone - Apple Support
How to restart your iPhone X, 11, 12, or 13
1. Press and hold either volume button and the side button until the power-off slider appears.

2. Drag the slider, then wait 30 seconds for your device to turn off. If your device is frozen or unresponsive, force restart your device.
3. To turn your device back on, press and hold the side button (on the right side of your iPhone) until you see the Apple logo.
How to restart your iPhone SE (2nd or 3rd generation), 8, 7, or 6
1. Press and hold the side button until the power-off slider appears.

2. Drag the slider, then wait 30 seconds for your device to turn off. If your device is frozen or unresponsive, force restart your device.
3. To turn your device back on, press and hold the side button until you see the Apple logo.
Let us know if that helps.
Take care!