In what way was the tension between the monarch and Galicia similar to the wars it was fighting