Had this happen to my red tops last year. Tapped the negative post back in gently. It kept happening, so this year I replaced both.
Never got to the post popping out.
I was using a name brand trickle charger. So I evidently like everything else in life warning signs show that they were coming to there end of life.