Not at all. There are medications that are used as a last resort ie when no other medications work, however there are no medications that will make other medicines stop working. This overthinking may be a result of your anxiety, which should settle down after a few days if you are on a proper medication regime.
Next Steps
I would suggest you consider speaking to a psychologist who can help you deal with your anxiety by teaching you relaxation exercises and also help you control your negative thinking.