Is there a word for this kind of false flag operation?
The definition one is one party secretly doing something that looks like the other party did it and shifting blame on them.
But this sounds much more like creating an incompetent fake opponent to gaslight the legitimacy of a real accusation.