Please search for “photorec”.
This program is the best solution to rescue Photos from a faulty SD-card
I used it several times to help others to rescue their photos / videos
It is able to recover files without altering the original SD-Card
Tip: I do backup my photos from sd-card to my pc regularly (you only get bitten once)