Again, it starts with the customer. If people really are that pissed off McDonalds ice cream machines are seemingly always broken, then they should stop going to McDonalds, and then the feedback loop will start from there. It's not like there isn't ample other options (Wendys, Burger King, etc). That tells me that this "problem" is really overblown, and while McDonalds customers really would prefer to have the option to reliably order ice cream, it does not deter them significantly enough from consuming McDonalds, and doing something like simply purchasing their ice cream from a different location. If McDonalds wants to recoup that income, then they will, again, prioritize that initiative, and work on improving the ice cream machine, but again, that juice does not seem worth the squeeze.
A bad ice cream machine could just mean sub optimal profits / experience.