Problem with PCB layout

I have a problem where I want to use a Pi HAT PCB and the GPIO connector location is fixed so I can mount the PCB to the RPi. I need to connect pins on the row next to the edge to other components on my board but when I route the wires between the holes, DRC reports the wires are hitting other pins on the GPIO.

Anyone know how to solve this problem?