What conditions create the greatest risk of military wars?
When military powers are roughly comparable, which leads to perception on both side that the other side could be defeated.
When there are irreconcilable and existential differences, think Hitler esk vendettas.