Moose, a couple ideas.
Utilize a token system where each building costs a specific token (directly correlated to build cost rounded up/down) that way they can't purchase allies with the gold but keep these "upgrade tokens" to use at their leisure. The only catch is that they have to use every single token and if they don't, they have to forfeit the rest and "lose them for some unknown reason." This will solve the next issue.
This would solve the itty bitty buying allies.
Next, to avoid those using this to become untargetable after stripping or hitting someone, instead of making it $50 (and available to only the big spenders) make it a time limit cast spell. Like you can only refund your buildings for full price once a week. To avoid people waiting 7 days to hit then switch to an untargetable build, they have to use all of their tokens in the rebuild process. If they don't, then they just lost their whole build to strip an amount that was most likely worth less than their entire build.
Also, once you use it, you have to confirm the changes twice in order to confirm it. First confirmation would be to reset all lands to empty, and the second would be to make sure you reallocated your tokens correctly. If any are left over, a third screen will pop over asking if it's okay to throw them away. There's no way someone can screw up a building reallocation with 3 checkpoints to get past before it finalizes.