Some time back, I posted this speculative explanation and solution for how these non-library references get added to playlists, even if the Tidal track is already added to you library.
It’s crazy how many hoops one needs to jump through to add the currently playing Tidal track to your library and a playlist.