practicing rolling over in sleep?

Da
My LO is 4 months old she just learned to roll from back to front and for the past three nights from 3:30am until she wakes up she tosses and turns.. rolling from front to back, back to front and whining. She doesn't fully wake up as her eyes are closed and if I pick her up she falls asleep but as soon as I put her down she starts tossing and turning again. Has anyone had their baby do this? We bedshare so anytime she tosses and turns it wakes me up. Any advice on how to get her back to sleeping soundly?