Is there a connection between alcohol and muscle spasms?

Yes. Alcohol abuse cause electrolyte depletion sodium, magnesium which are causes of muscle cramps also alcohol withdrawal cause muscle spasm.