I got this bug too, I used the deconstruction tool and my construction bots came over and removed them. This causes the hidden lamps to not be removed with the powerpole and now there's a bunch of hidden lamps flashing no power warnings and the location is unusable. I've found a way to 'fix' this is to run this command:
/c for _, entity in ipairs(game.player.surface.find_entities_filtered{name="small-hidden-lamp"}) do entity.destroy() end
This will remove these hidden entities from your map, which unfortunately will mean all of them, including the ones under powerpoles you wish to keep.