There are a couple of ways
1. Suspend the outbound listener on the box with an issue.
2. In your email system you'll have a connector that says where mail leaving should go, remove the problem server from that list of possible destinations.
Some systems may have weighting or preference order, Exchange on-prem doesn't, I don't think O365 does either, so you basically have to keep mail from going to that box.