This makes sense as a fix, because when using tidal connect you are not playing media locally on the phone so the battery optimiser will kick in.
Looking at the phones of people who checked in here, Samsung and OnePlus these are one of the worst in terms of how aggressive the battery optimiser is.
From here you can find how to put the settings for different brands and android versions https://dontkillmyapp.com/