I suspect that, without knowing your full medical history, even the mighty Sqad won't be able to provide a definitive answer to your question.
However, assuming that the Ramipril has been prescribed for hypertension (high blood pressure) then, as an ACE inhibitor, it's usually the first line of attack for patients under 55. If there are problems with side effects, then ARBs (see link) are avalable as an alternative. For patients over 55 calcium channel blockers would normally be the first option but, obviously, doctors need to consider what other medications a patient is taking before prescribing
any drug to reduce hypertension.
See here:
https://www.nhs.uk/conditions/high-blood-pressure-hypertension/treatment/
However I strongly suspect that Sqad would/will say that you should never stop taking any course of treatment unless
(a) a doctor tells you to do;
(b) another health professional, such as pharmacist tells you to do so ; or
(c) there are clear instructions on the packaging telling you to stop taking the drug if you notice specific side effects.
So what all that really boils down to is the most frequent advice given here in B&S: "See your GP".