Ankle hitting crank arm on SRAM rival quarq crank

My previous bike was a ridley helium with ultegra crank arms, 172.5 mm length.

I recently got a specialized tarmac sl8 with SRAM rival quarq crank arms, 172.5 length.

On the specialized bike, the inside of my ankle is hitting against the crank arm. I never encountered this issue on the ridley helium. I feel I may have to just switch to a different crank arm, but has anyone else ran into this issue and solved it?

FWIW I have favero assioma pedals, and use 1 spacer on each side.

Yes. I added a spacer or two and it fixed the issue.