MTX Thunder Elite 1501D

Bought this amp knowing beforehand that it didn’t have no output. Upon getting it on my test bench I confirmed it had rail voltage and the plus and minus regulated voltage. I checked the outputs and there were no shorts. I replaced both A3120 optocouplers and both NE5332 opamps. Upon replacement I had rail to rail oscillation on the outputs and produced clean audio on the bench. Upon installation in a vehicle and setting the gain on the amplifier I got full voltage on the speaker terminals and a deformed square wave. Removed the amplifier from the vehicle and installed on my test bench and couldn’t replicate the issues in the car until turning the gain to the max. I’ve repaired a few MTX’s but never had this issue before.