Your doctor can work with you to find a medication that agrees with you, and if that is not possible, they can explain why it is important to continue the medication and what the benefits to you are.
Most times the risks and consequences of the condition being treated are much worse than the side effects of the medication, so it is worth it to you to take it, and sometimes they are not. If you are concerned, have this discussion with your doctor.