From your screenshot I was able to guess it's related to the map editor and map editor instant building. While not a huge deal (since the map editor can cheat and do a lot of stuff normally not allowed) I changed it for the next release anyway. Outside of the map editor it does not allow invalid modules and will simply remove them on setting the incompatible recipe through parameterization.
If you want to get ahold of me I'm almost always on Discord.