galaxy-importer local image build [1] uses a shared image [2] along with OCP for running ansible-test sanity, that image was edited for OCP to download the collection artifact which is incompatible with the local image build. It may be best to split the image definition into a .common .ocp and .local
[2] https://github.com/ansible/galaxy-importer/tree/master/docker/ansible-test