My little one used to do that when she was 4.5 months old. Same thing. Cried a lot. Couldn’t be comforted or put back to sleep other than latching onto me. In the end we just sleep trained her by the cry it out method. Now she has no issues sleeping on her side/tummy/back