The SD card error on your GoPro Hero 7/8/9/10 can be fixed by following these steps:
Check to make sure that the SD card is properly inserted into the GoPro camera.
Format the SD card on your computer.
Update the firmware of your GoPro camera.
Use a different SD card.