Cravenness:
noun. Ignoble lack of courage: chicken-heartedness, cowardice, cowardliness, dastardliness, faint-heartedness, funk, pusillanimity, unmanliness.
For more examples of it in action, read: ‘Weakness and surrender’: Ted Cruz seeks to move on from Tucker Carlson mauling | Ted Cruz | The Guardian
I was going to reference Pyrrhic Victory, but it doesn’t cover an event where so much is given up and nothing is gained.