Hey,
I'm sure it's not the case. But it's good that you've been able to trace the roots of this back to its roots.
When I suffer from anxiety in the street, I sometimes get intrusive thoughts similar to yours. I've found listening to music (be it ironic, upbeat, glam,...) and the thoughts just glide past me.