Were you talking to your psychiatrist about this at the time? If you were prescribed medication there should have been a doctor involved in the process at some point that could consult you about possible side effects of the given drug and addressing them, probably by changing medication.