I recently had this same problem on my EOS M50. I applied electrical contact cleaner, available from Lowes, Home Depot, Ace Hardware, etc. to a q-tip & cleaned all of the gold contacts on the camera's lens mount, lens, & lens adaptor, and everything ...