I'm not too sure who is breeding cannabis plants with genetic modifications to make them immune to pests, so not sure how much of an option that is.
BT is what you want. Much easier to get hold of a product with that in it.
Specifically, Bacillus thuringiensis kurstaki. It's a bacteria that will kill the caterpillars that try to eat your plant, but it needs to be given to the plant in veg to uptake before flower.
It mainly targets caterpillars, so it won't kill any beneficial bugs you might have around.
You can read about it more here
https://en.
wikipedia.org/wiki/Bacillus_thuringiensis_kurstaki
Also, do not spray into the hole the caterpillar made, water sitting in a wound of a plant in flower is a recipe for disaster.