My Question or Issue
When I lock the screen the music produced by spotify just stops. It were downloaded music, and I don't have any data service restriction or power saver.
maybe this will solve your problem: go to Settings>Apps>Spotify>Battery>Allow background activity.
Hope this helps, have a nice day!