How to automatically prevent to split a bar across two adjacent systems?

If you attach the project here, we can diagnose the problem, but without the project itself there’s not a lot we can offer by way of advice. A little reminder: