But I still think fining the managers who intentionally use illegal formation, out of position etc to lose game is possible to be coded by detecting the possession penalty and setting a threshold on how much you can mistreat the team without being punished.

I think a 2-token fine per game is enough to discourage any offender.