One thing I've found with a lot of spin classes is, the warmup isn't anywhere near long enough. I feel the need for at least 10 minutes of gradual build-up, preferably 20. So if you can get in early and warm up by starting with gentle pedalling for 10 minutes, then pedalling with a few spin-ups (don't shift up, just spin your legs faster), it might help.