I'm leaving this here because I finally found the answer to a problem I've been having on and off for years, because I couldn't find it anywhere else and maybe one day it will help someone else.
I'm on my third Doogee and they have always been a bit flaky about claiming the SD card was corrupted after a restart. Worse for me because I like to keep as much data on the SD card as possible to make changing phones easier and I keep a lot of offline music and audiobooks on SD too, all on a 512gb card.
Until now repeatedly reinserting the card had eventually caused it to be recognised, but this time no dice. I thought either phone or card must be faulty. But no.
It seems some budget phone manufacturers, Doogee included don't include ExFAT support in their Android kernels. I didn't know this but I did know that even at 512gb I had to format my card as FAT32, or I stuck it in the phone blank and the phone formatted it FAT32. The problem, apparently is that when you put a shit-ton of files (336gb in my case) on a FAT32 card the Fille Allocation Table becomes too big for the phone to read before it times out.
You could format the card into 2 smaller partions, but that is not great of you could do what I did. If you change the format the card as FAT32, but with 64kb clusters instead of the default 32kb then the File allocation table.is half the size, reads twice as quick and you can used large SD cards as potable storage on cheap phones again.
tl;dr:
Run these commands on Linux (obviously back up your files first this will format the card):
Find your card by running
lsblk -f
You'll probabaly need to unmount and wipe.it too:
sudo umount /dev/sda1
sudo wipefs -a /dev/sda1
Then format it as FAT32 with 64kb clusters
sudo mkfs.vfat -F 32 -s 128 -n SDCARD /dev/sda1
Change SDCARD to whatever volume lable you like (11 characters max)
Change sda1 to whatever your card is , according to lsblk.
No guarantees but it worked for me.