Any way to remove/select a texture from an entire scenario?

Due to the texture limit issue, I have some unpleasant bugs on my world map.

If I place a new building on some grass, a bugged texture appears under it.

And if I place more buildings all over the map on other textures, I have a “texture apocalype”, All textures, including water, are moved. This bug appears in the editor AND in the game (making it unplayable).

This bug has already been reported on the forum:
https://forums.ageofempires.com/t/scenario-editor-texture-limits/107523
https://forums.ageofempires.com/t/scenario-editor-texture-limit-bug/189110

This bug is probably due to a technical limitation.

Limit of 51 max

.
Whether there is a limit or not doesn’t bother me. I just have to remove some textures from my map to make room. But, on a world map, there are 50 textures placed everywhere. I cannot track all the pixels of a texture by hand…

That’s why I would like to know if there is a way to select, delete or replace an entire existing texture with another one.