metformin problems

J

So I have been taking 1000 mg of metformin once a day and Dr raised it to 1500 a day and yesterday after taking it in the morning I had breakfast and then went to lunch and had a glass of wine with lunch right after lunch I got clammy,sweaty light headed and nauseas. I ended up having diarrhoea and then after 3 hours of starting to feel okay I had to drive home which was an he and I started feeling nauseas and clammy all over again about 20 min in once I got home I was full on nauseas and threw up like 5 times and then I felt better but not perfect. why would my body react like this. Today I am not taking any of it. and plus I have had a migraine for over a month now. not sure if related. any help is appreciated. also I do have pcos and stage 2 liver fibrosis and fatty liver..