should I go for a Ph.D.in electronic/electromagnetism engineering?
There is no question that stress can kill you. But there are ways to reduce it. One of the big stress factors among students - especially high achieving students - is pushing too hard and never taking a break. 

One advantage you have over many others is that you now recognize the issue and can learn to take action before the level becomes unbearable. 

One problem with learning is that you are trying to change your brain - physically. To learn requires rewiring the synapses that connect the neurons. But the brain doesn't work as well as it might if you force it to work too hard all the time. You need to give it periods of rest. If you try to force it to learn it will work less efficiently. But that may just induce some people to try harder, increasing the problem and adding stress, but not learning. 

To give your brain a break you just need to do something different. It may include physical rest or not. In fact it may include intense physical activity. In grad school I used bicycling as an outlet. 50-100 mile rides. Maybe 35 if time was tight. I rode in a group, fairly fast, but not so fast that we couldn't chat as we rode. As an undergraduate I practiced judo on a college team. I was terrible at it, but it provided a break from studies. Nowadays, I use Tai Chi which is a mind-body fusion exercise. An hour several times a week will make a change in your outlook. Some academic departments actually have groups that regularly do some activity. Tennis. Racketball. Swimming. A computer scientist I know (very high level person) once joined a theatre group. 

Moreover, when you are trying to solve a difficult problem, pushing the brain harder may be counterproductive, but giving it a rest lets it work differently. Many researchers have gone to bed with a nasty problem unsolved, only to awake with the solution. It might even come in the middle of a bike ride. Your brain doesn't turn off in these situations, but the overall body structure (including the brain) will work differently. 

My advice, then, is to find a way to deal with stress. If you are at a university or similar institution, there may be some "counseling" office that has short courses on such things or people skilled in teaching stress reduction. If you can find ways to manage and reduce stress (you probably can't avoid it altogether) you can function at a higher level whatever you do.