Yeah, I don’t see it a feasible either.
A railgun would use an amazing amount of electricity, then the recoil would be huge, thus throwing some of the electrical equipment off kilter, and the next time they fired the rail would create a massive electrical arc due to misalignment and blow off the bow.
That’s completely ignoring the issue of the heating of the rails.
The USN claimed something like 400 shots out of a given rail setup before retiring it but not necessarily at full power.