Please run the following commands and post the output:
sudo mdadm -D /dev/md0 sudo grub-probe -vvv -d /dev/md0
Please run the following commands and post the output:
sudo mdadm -D /dev/md0
sudo grub-probe -vvv -d /dev/md0