every now and then when I forget to wear cotton shirts to bed, I will wake up in cold sweat and terrible pain in the chest that I can't seem to place. It hurts a hell lot and I can't sit up, lie down. I cannot do anything at all.

It ONLY happens when I'm not wearing cotton; e.g spandex material?

Is there a link between them or it's some other problem?