Ok but if you’re going the consciousness arrives from a complicated enough system route of reasoning, then you have to consider the degree of complexity before consciousness arrives, that fruit fly has about 150,000 neurons and those things are definitely not self-aware. Modern cutting edge AI have around 8.5 billion neurons, which is still considerably less than an octopus (which people are morally fine with catching for food) which are definitely intelligent but not sapient. So even if consciousness arise from simply having enough processing units, we’re not at the level yet where we need to be concerned.
It’s also worth pointing out that pain is an evolutionary trade that came into existence because it prevented injury (if it hurts to do something, it encourages you to stop doing that thing). Meanwhile AI exist in a non-physical reality, they cannot be damaged by the environment, so there is no such thing as pain for them. An AI cannot feel pain anymore than the human can feel pain when that video game character gets blown up.