Hi, the other day I experienced this issue and since it's not something that is straightforward for the QA team to find I figured I'd share the bug and the repro steps here.
Summary
If the phone doesn't have connection or is in airplane mode and you change the SIM card you get automatically logged out of your account and cannot access until the phone has connection again (once it has connection there's no need to login, it does so automatically).
The problem is that the downloaded music is soft deleted, that means that the reference is lost but the music is still downloaded in disc so if I want to have the same songs downloaded for offline playing, they would take twice the disc space (old ones and new ones).
Repro steps
Spotify version: 7.9.0.746 (Premium account)
Device: Samsung Galaxy S7 (SM-G930F)
I've been traveling around the world and have experienced this issue a lot as well on my Samsung G930F. It's gotten really annoying because when I go from one country to the next I need to redownload all my music. With slow Wifi in most places, this takes forever or is almost impossible. I can understand the need to reauthorize music is a SIM change happens, but it shouldn't require me to redownload everything.
Any fix available? Hate this situation...