maybe re-format the card in a computer first
then install in phone - and let the phone format it - install your data.
I don't know but I would suspect you can get a cleaner start using some PC/Linux hardware to format and scan it, than the phone has capability for.
I could be wrong - just a though.
have to ask though - how old a card, what make - what class rating?
I had read years ago that flash memory card do have a finite life to them - just like SSD's and while they've gotten better. if it's 5 years old and built off the previous tech chips - then it might well be dieing.