I looked for a ‘bugs’ subforum but didn’t see one. I saw ‘issues, workarounds, a localization’ but that didn’t seem appropriate.
Anyhow, to reproduce the bug: 1) be in a state where you cannot add any more structures due to being maxed-out on power, 2) delete an extraction head to make room for a basic industry facility (don’t submit), 3) build basic industry facility (don’t submit), 4) simulate ‘whoops, didn’t mean to put it there’ and delete basic industry facility (don’t submit), 5) try to build it again. You get an error that you are already dangerously maxed-out on power.
You just wasted a minute of my life. Not just any minute but one of my favourite minutes. I mourn its loss and you probably don’t even care your post did that. You should feel ashamed.