Oh...
I think I know what is going on here. I have a function that looks for the hidden tile name for when the player builds a tile, but I did not make it check if the tile even has a hidden tile to begin with. It uses that information to replace infestation that has become hidden with landfill tiles. That way, when you cover infestation with bricks, it is removed.
I have put in a check in the code while I was typing this and will test it to see if it works.
Now that I think of it, this could have been an issue when using landfills in freeplay too. That's why it is good you found it early.
Edit:
I tried out the editor, and did not get a crash when placing tiles. So I think this issue is now fixed. I have updated the mod to the fixed version.