During my roza i felt very ill and could not carry without a painkiller. So I had to break my roza and take the painkiller. Was it wrong?

You should do qaza one roza