I had those for about 2 weeks. I was surprised that even a gentle start into IF caused them for me.
Drink enough water, possibly with electrolytes, but don’t overdo it on either. A dash of salt under my tongue occasionally helped, but sometimes I needed OTC pain killer. Eat enough during your feeding window. I don’t recommend to go lower than your recommended deficit.