Transitioning to crib from co sleeping help

St

My son is 3 months old and we started co sleeping the first week because he wouldn't sleep anywhere but my or dads chest. He would scream every time we put him in the bassinet. Now that he's a bit older and can spend time during the day independently I'm trying to transition him to his crib we have in our room. He rolls front to back and back to front already and is too big for his bassinet. Problem is he is waking up every 30-40 minutes screaming his head off and the only thing that consoles him is nursing. He only ever sleeps a max of 3 hours at a time and I'm lucky if I get that usually he still is waking up every 2 hours to nurse. I really want to break the co sleeping habit bc I'm not sleeping that well with him in bed, it gives me anxiety. Anyone have any tips?