Talk to your prescribing doc, or <insert deity here> forbid, Google and find out how long those drugs can be detected and wait til then.
Join AOPA and talk to their medical certification staff - AOPA is great. They have what they call a "Turbo" Medical that will point out any FAA triggers during a medical.
Make sure you've found the source of the spasm and that you've fixed it.
I'm not a doc, nor play one on TV. These are merely suggestions and probably don't make sense. Insert other legal boilerplate.....
Good Luck!