It actually doesn't stack with spell turning because spell turning can't stop rays. It only affects spells with a specific target, while rays technically only produce an effect. They would still be pretty good together though since it would protect you from a wider range of spells.
A ray with too many spell levels I think would just pass on through, without taking anything from the protection's remaining levels. Or maybe it would weaken it providing a boost to your saving throw?