I wouldn't be surprised that such weapons are going to be bog-standard on ships in the future just because of the possibility of this situation.
Not only that, but FELs are becoming a thing and a genuine weapon system. A good enough gas turbine or a fission reactor set can power them for a good...