Stop pinching

My daughter sleeps with me and for her to be able to fall asleep she has to be pinching and it hurts what can I do to stop her from pinching I’ve tried no no I’ve tried holding her hands nothing seems to work

3/5 Edited to