Agreed on cafe22's recommendation.
We have (had due to COVID? lol??) a JURA machine at the office. Some dumb hipsters decided it was a good idea to throw in a bag of Norwegian light roasted coffee through it and it was just awful. Needless to say, the facilities manager was pretty pissed off about it and reloaded it with I think Van Houtte dark roast or something, and all was well again.
The only other "hack" I can think of is it make sure you run cleaning agents through the grinder and machine in general regularly, especially after going through a bag of really oil, dark roasted coffees. I don't know how often you use your machine, but I keep telling people I work with to always clean regularly, at least once a month minimum. Some people don't clean their machines until 6 months in.