Are you using Full Sized SD Cards or Micro SD Cards in an adapter. Is the write protected switch turned on. This will prevent the camera from writing to the SD Card. Also what size SD Card are you using.
I just want to confirm that your using the original M50 not the M50 Mark II. Older cameras seem to have issues with 64GB or larger SD Cards. The cameras will work correctly with 32GB or smaller SD Cards. Despite saying SDXC (64GB or lager) is compatible.
I was stating that some cameras have problems with large cards. Not all cameras have problems with large cards. For instance the Rebel SL3 and T7 have problems with 64GB (SDXC) or larger SD Cards. I just wanted the OP to test out a smaller SD Card to see if the camera would work correctly. Also 32GB SD Cards are SDHC not SDXC.
A smaller SD card as in a smaller GB? I will try that. I thought that the larger GBs would work better but I have no problem just buying a few smaller storage options if that might prevent this from happening again.
With a larger SD Card if it were to fail all of your pictures are gone. If you use multiple smaller SD Cards. If one of them were to fail at least you still have some of your pictures. Which is better than no pictures at all.
Did you format the memory card? Depending on what brand memory card you got some come with recovery software for a year or so and then you have to pay for it after that. Also in your settings there is a way to set it so your images are protected. This is for the Canon M50 Mark II but it will work on the M50 as well, I went through my M50 and made sure for you. https://support.usa.canon.com/kb/index?page=content&id=ART178458
09/26/2023: New firmware updates are available.
08/18/2023: Canon EOS R5 C training series is released.
07/31/2023: New firmware updates are available.
05/31/2023: New firmware updates are available.
05/18/2023: New firmware updates are available.
03/30/2023: New firmware updates are available.