Miners only have the task of organising the blocks. If miners use software that violates the rules of the network, a fork is created. Miners cannot run any other software otherwise they are no longer part of Bitcoin.
Also, there are miners who will not follow this and make a lot of money from it.
