Stopping would be a disservice to yourself.
I understand where you are coming fro. Learning how to program can be difficult and frustrating at times. This is a normal part of the process in learning anything technical. Do not be so hard on yourself and remember that as time goes on, your ability to learn and understand new technical ideas will improve, as will your problem solving skills.
I'd recommend that you try to mostly focus on your own growth and not the growth of other people. Just do you. If you are driven to learn, then you will make progress and improve.
Try different approaches when learning a difficult concept by checking out other resources such as different websites, books, videos, etc. Usually you can find an explanation that makes sense to you and 'clicks' just by spending a little bit of time searching.
Here are 2 other important things that will help:
First, spend some time thinking about the learning process and how you learn best. Many of us have never been taught strong skills used for learning new information and really don't know how to go about doing so in an efficient way. Here is a great course on this subject from Coursera.
https://www.coursera.org/learn/learning-how-to-learn
Second, spend some time learning problem solving skills. Knowing how to approach and break down problems in a logical way is one of the best skills you can have. These skills can be applied to learning as well as to many different areas in your life.
Here are 2 courses on this subject:
This one is aimed at people who are learning programming
https://www.mooc-list.com/course/logic-and-computational-thinking-edx
https://www.coursera.org/learn/problem-solving
I hope this helps. Don't worry about your learning speed. You'll know in time whether programming will workout, and it will mostly be dependent on your ambition and how passionate you are about the field. You do not need a higher than average IQ to learn how to code. Instead, you need patience, learning and problem solving skills, focus and most of all, practice, practice, practice.
Good luck!