has anyone had anything like that?

so ive started cramping while im asleep, its really short but super painful and only happened when im asleep few days a week, has anyone expierenced this?