I have an oscar that runs into the side of the tank when the lights first go on. I’ve figured out that he/she is fighting his/her reflection; this may be the case with your piranha.