Tossing and turning at 2-3 am

Any advice is welcome, I bed share & my son seems to sleep good until around 2-3am then he wakes not just to feed but literally just to thrash around for like 40 minutes until I pick him up and rock him back to sleep.

It’s getting old QUICK .

HELP!