In regards to the infotainment system, I’ve had my fair share of problems. There is a way to restart the system without shutting the car off, you can read the instructions here: How to Turn Off the Radio in Mazda Vehicles - Flightline Mazda
If the issue persists, I have found that the navigation system is usually the cause of the system freezing/shutting down. My system would constantly shut down and restart while in use, it was more prevalent on colder days. I went to a dealer for the problem and they told me the system was out of warranty, so it would cost around $2,100 to have the entire system replaced. What I did instead was simply remove the navigation SD card from the system. I never used it anyway, and the system never shut off again and has since worked without issue.
If the issue persists, I have found that the navigation system is usually the cause of the system freezing/shutting down. My system would constantly shut down and restart while in use, it was more prevalent on colder days. I went to a dealer for the problem and they told me the system was out of warranty, so it would cost around $2,100 to have the entire system replaced. What I did instead was simply remove the navigation SD card from the system. I never used it anyway, and the system never shut off again and has since worked without issue.