Always check the water parameters just in case there is too much ammonia, nitrite or nitrate. Sometimes fish will act a bit aggressive not sure how the 2 correlate but have seen it happen a number of times. I guess on edge from discomforts.
What size is the tank they are in and how big is their body? Could just be hormones as well. Often they will chase, and posture /I call it stomping their feet at each other. Where they act like if they were people facing off stomping their feet /waving their arms, at the other like "come on, whatcha gonna do, huh, huh, come on, I dare ya!" They will shake and shudder at each other, lip lock too.
I would worry more if they are ripping each others fins out kind of attacking. Then a big net /box. I have seen people use nets, organizing baskets, and the plastic needle point panels stitched together, and of course, manufactured tank dividers as well as acrylic sheets with holes drilled through in DIY version.