Thank you for playing it!
Both death loops (the robot war machine and starvation due to unbalanced population) can be avoided if you have enough Hunter-Guards, or enough Hunter Guards compared to the rest of the population with starvation.
That being said I might want to tone down the death-loops or add ways to escape them in future versions of the games maybe