Sometimes my phone does not show any data on the SD card in the gallery and music player. Sometimes it works and sometimes not. I think it's on the phone because I bought a new SD card and the problem is still there. My phone then displays a notification that I should reformat my SD card and I did that on my PC but the problem remains.
Mobile: Huawei Mate 20 lite
Then I suspect contact problems of the card slot.