Medication

I first had difficulty conceiving my first two children, even with the help of my doctor. I had to pinpoint the exact days I was ovulating with an ovulation test kit. Back then, I was not on any other medication other than my insulin for my diabetes.
​3 years ago, I was placed on pain management for my back(severe muscle spasms, mild scoliosis, fibromyalgia, DDD, facet arthrosis), and 2 years ago, my boyfriend and I started to try and conceive our first child together. I have used ovulation test kits, checked bbt, CM. My boyfriend is 32 and has a 13 year old son, myself am 26 with 5 and 7 year old daughters.
​Over the last 2 years, I've had 6 miscarriages, all before 6 weeks. I am being prescribed 10mg oxycodone 3x a day and 350mg soma 3x a day. Are my medications not only making it difficult to conceive, but also causing such early miscarriages when we do?