Yes, it's ok to consume medicines for several years. Several of the side effects actually decrease as u take medicines for several months, body gets adjusted to the medicines.
Your medicine can be stopped, if your symptoms have been under control for at least 1 year with the medicines.
Next Steps
If your symptoms have reduced currently, u need to step by step reduce dose of ur medicine over several months and then stop the medicine.
Health Tips
Stopping medication carries risk of relapse occurring, means your symptoms can increase or become severe.
And in any case never stop medicine all of a sudden.