Very good question(s).
I suspect large ships are very near the point where they’re just really big targets.
Saw a bit about railguns. Very difficult to see how a round from one could be stopped or diverted.
Reactive armor might. But given a hypervocity railgun shell, it would have to be a very large charge that triggers incredibly fast. Possibly even using proximity radar, before the round makes physical contact.