maybe try the maybe try the suggestions by dj10555 in this order...
Put machine in self test for the switch test with the ball out of the outhole (should show 0 if no switches are stuck) if a number shows, check the corresponding switch and see if it is stuck closed, if not remove the capacitor.
remove any original switch caps anyway, replace. (make sure the value is correct on new ones, ceramic .047 mfd ceramic disc capacitor.
Generally check all switch solder joins in case one is loose
check all switch clearance, maybe one or more are too close and making contact with the flipper/pop bumper vibration
It only takes one switch to play up or be stuck on to cause random scoring or solenoid firing anywhere and everywhere on the playfield.
If case you happen to have changed any IN4004 diodes, they need to be soldered on with the band on the correct side. If installed the wrong way this will also cause erratic behavior.