I’ll be honest and say that most of my self hosted music collection was pirated or ripped from CD like 20 years ago. I put it all on an iPod back then.
I found the iPod gathering dust in a drawer when I finally got a car with a usb jack a couple years ago (yeah I’m not exactly laden with bags of cash over here) and recently pulled all that music back onto my newly set up media server.
I have a Spotify family account I’m trying to phase out with resistance from the children.
To support artists I go and see them when they tour and buy a ludicrously expensive t-shirt
2 things, one of which has already been said
Get an SSD and a usb cable for it. Boot off that. Be aware that not all cables are the same (have a Google for usb 3 SSD cables for home assistant before you buy one). There’s a little song and dance you have to do to boot off ext SSD but it’s not hard and doesn’t take long (Google).
That combo will eliminate the SD card issues in the future. But you also need to look into the Google Drive backup add-on. Get that for when shit goes down.
With those two things you should be all set and eliminate this ever happening again. If it does you have a backup.