Try using Disk Drill for Mac to recover files from a corrupted SD card. It’s super user-friendly. First, download and install Disk Drill on your Mac. Open the program and connect the corrupted SD card. The software will scan and show recoverable files. Follow the instructions to save them.
Also, here’s an extremely useful visual guide on this topic - useful video.