Switching pills

I started the pill and after a month my doctors switched my pills and told me it was just a different name brand. After three months of that I was still getting bad side effects so I requested to switch again. After a week on the new meds I’m constantly shaking and dizzy, every day worse than the next. I nearly pass out every morning. Any suggestions?!?!