Get some errors in "format-boot-loader"

Hi,

I try to install the Debian system in SD card. I have followed the guide to delete MBR partition in SD card. The information is in the following.

sudo gdisk /dev/mmcblk0 
GPT fdisk (gdisk) version 1.0.1

Partition table scan:
  MBR: protective
  BSD: not present
  APM: not present
  GPT: present

Found valid GPT with protective MBR; using GPT.

After executing “sudo make DISK=/dev/mmcblk0 format-boot-loader”, I got some errors.
sometimes is

/sbin/sgdisk --clear  \
	--new=1:2048:65502  --change-name=1:"Vfat Boot"	--typecode=1:EBD0A0A2-B9E5-4433-87C0-68B6B72699C7   \
	--new=2:264192:62331952 --change-name=2:root	--typecode=2:0FC63DAF-8483-4772-8E79-3D69D8477DE4 \
	--new=3:1100:2020   --change-name=3:uboot	--typecode=3:5B193300-FC78-40CD-8002-E86C45580B47 \
	--new=4:1024:1099  --change-name=4:uboot-env	--typecode=4:a09354ac-cd63-11e8-9aff-70b3d592f0fa \
	/dev/mmcblk0
Found valid GPT with corrupt MBR; using GPT and will write new
protective MBR on save.
Setting name!
partNum is 0
REALLY setting name!
Setting name!
partNum is 1
REALLY setting name!
Setting name!
partNum is 2
REALLY setting name!
Setting name!
partNum is 3
REALLY setting name!
Warning: The kernel is still using the old partition table.
The new table will be used at the next reboot or after you
run partprobe(8) or kpartx(8)
The operation has completed successfully.
/sbin/partprobe
Error: Input/output error during read on /dev/mmcblk0
Error: The backup GPT table is corrupt, but the primary appears OK, so that will be used.
Error: Input/output error during read on /dev/mmcblk0
Error: end of file while reading /dev/mmcblk0
Error: Input/output error during read on /dev/mmcblk0
Error: end of file while reading /dev/mmcblk0
Error: Could not find bootloader partition for /dev/mmcblk0
Makefile:384: recipe for target 'format-boot-loader' failed
make: *** [format-boot-loader] Error 1

and sometime is

/sbin/sgdisk --clear
–new=1:2048:65502 --change-name=1:“Vfat Boot” --typecode=1:EBD0A0A2-B9E5-4433-87C0-68B6B72699C7
–new=2:264192:62331952 --change-name=2:root --typecode=2:0FC63DAF-8483-4772-8E79-3D69D8477DE4
–new=3:1100:2020 --change-name=3:uboot --typecode=3:5B193300-FC78-40CD-8002-E86C45580B47
–new=4:1024:1099 --change-name=4:uboot-env --typecode=4:a09354ac-cd63-11e8-9aff-70b3d592f0fa
/dev/mmcblk0
Warning! Main and backup partition tables differ! Use the ‘c’ and ‘e’ options
on the recovery & transformation menu to examine the two tables.

Warning! One or more CRCs don’t match. You should repair the disk!


Caution: Found protective or hybrid MBR and corrupt GPT. Using GPT, but disk
verification and recovery are STRONGLY recommended.


Setting name!
partNum is 0
REALLY setting name!
Setting name!
partNum is 1
REALLY setting name!
Setting name!
partNum is 2
REALLY setting name!
Setting name!
partNum is 3
REALLY setting name!
Warning: The kernel is still using the old partition table.
The new table will be used at the next reboot or after you
run partprobe(8) or kpartx(8)
Warning! An error was reported when writing the partition table! This error
MIGHT be harmless, or the disk might be damaged! Checking it is advisable.
Makefile:384: recipe for target ‘format-boot-loader’ failed
make: *** [format-boot-loader] Error 4

Could anyone know why? And how to figure it out?
Thank you!

I have figure out this problem. Just try a new SD card or reader. The problem is shown because SD card or reader is broken.