Using a cassette and derailleur with different sprocket/cog specifications
I don’t think anything bad will happen if you use a cassette with 12t smallest cog. At the worst shifting to it won’t work reliably but you probably don’t need the cog on the trainer in the first place (and using it often would wear it down relatively quickly due to the low tooth count).