Check signal line PB3, pin 13 of U38 PIA with a logic probe or oscilloscope. I'd certainly be suspicious of the PIA. I can tell you this never would have been transistor related in the first place, as the transistor is basically a "dumb switch", and something upstream has been turning it on and off.