There are two coils in the solenoid, a pull in coil and a hold in coil. If the hold in coil is bad it will cause a problem as you describe. Remove the solenoid and test it on the bench. Ground the base and apply 12V power to the #4 terminal. If it snaps in and stays in, it is OK. If it wants to bounce it could have oil in it but is likely defective.
Fred


1956 3100 Pickup/Red/350/3sp OD/PS/Disc Brakes
1957 Bel Air Sport Coupe/Red/355/TH350/PS/Disc Brakes
2017 Silverado LT Single Cab SB/Black/5.3/6 Speed Trans
1947 Willys CJ2A w/F-Head engine