Things to try:
Bypass the switch entirely. Unsolder the bridge pickup’s hot lead from the switch and wire it directly to the output jack (with common ground). If the issue persists, it’s 100% the pickup. If it goes away, it’s something in the switch or wiring.
Tap test it when it’s acting...