There are no forcasting for earthquakes, but they can be monitored and prevented to a minimum using a warning system, as electromagnetic signals travel faster seismic waves. Some few milleseconds would be enough.
If the factories weren't bombed before Taiwan fell to the communists, I'd imagine hey would still be cut off from western semiconductor technology, so they would still end up falling behind even if they could get them restarted.
Are there any "exports" to ban after the fall?
The TSMC production was interrupted by a metro passing by few kilometers away. How can it sustain in a war?