Pulled the SD card, downloaded Mazda Toolbox, and ran the diagnostics. Maps are out-of-date, but the card checks out fine otherwise. Maybe this is the push I need to install the CarPlay upgrade...
When mine ('17 CX5) started to have this issue on and off...
I did everything people recommended here... cleaning, insertion again and again, reboot, etc.
No help.
I got a new one from A*m*n for $50, and it works fine so far.
Last thing you can try.
BTW, MID software could sometimes miss a beat when you back out (showing backup camera) before its booting is complete..... Try to let it finish booting, before engaging gear. As my wife always tells me wisely ... "Slow down, honey."