Once you find a way of counting buffs, and making a certain stack amount a prereq for other buffs, you can simulate it with abilities.
So once the limit is reached, you can disable the abilities of Ruiners and constructors, though the only way of forcing it for the Jarun would probably be to mod the deployment ability and make it "malfunction" if too many SB's are present, refunding the costs in the process.
For TEC mines you will probably have to destroy and refund every single one that goes over the limit.
I have no idea how you're supposed to count the buffs in the first place, so I hope someone comes up with a working solution. You could possibly make a chain of 10 buffs, or whatever your desired limit is, and only apply the next one if there is another eligible target beside the one already carrying the current chain link. Then, make the 10th buff the prereq for things to start malfunctioning. If you want to try this, and run into problems, you can also necro my Fleet Synergy thread (read it to get a basic idea of how to set up this mechanism), where I'm doing a similar setup, albeit with a different purpose.
All of this will get very messy and complicated, so I suggest you forget about it unless someone comes up with a simpler solution or you have a lot of free time.
Also this would break Vasari, as their SB is their only siege weapon, and Advent/Vasari could quickly spam a defending player out of available "mine slots".