this is the card i have i got it last week and everytime i get to the end credits and after "the end" just black screen this didnt happen with my old card from 2014 r4i rts 3ds
Try to reinstall the game to your sd card. But add some file (or install some other game) on your sd card before installing pokemon to make it pass the possible bad sector on the sd card.
I'd format and run a hardware test on that SD card beforehand, though, as I also think there is likely something up with that SD: https://dsi.cfw.guide/sd-card-setup.html