I think you forgot to attach the image. If you go to device configurator -> Analog Routing, you can see how the analog resources are distributed. You can see that Amux bus is a limited resource and just make sure that you are using minimal resources. You can change the ADC input pin to a dedicated pin ( may be port 10 pins) and see whether the routing is successful.
Following document should be helpful: