HI AWL, WELCOME TO FISHLORE!
What kind of pleco do you have? The reason I ask is that it sounds like your tank is overcrowded, this would add to any stocking problems with a Rainbow shark. Even though the pleco isn't the problem in this particular fight, if it is a common, it could be exchanged for a bristlenose, and that would relieve SOME of the tension in the tank.
They usually will only be aggressive with other fish of similar shape....but it sounds like it is having territory problems. You could try a bigger tank, with lots of rocks, caves and driftwood to break up the line of sight which would probably eliminate this problem.