Please help!!!! Baby wont sleep in his bassinet!!

He only sleeps in a swing and I KNOW it’s dangerous and that’s why I’m so worried. He’s two months and I’ve tried everything. I even try making him sleep in my arms and it doesn’t work. Some people say just dont give in and I even tried that to the point he went 24 hours without sleep.. I don’t want to risk him sleeping in a swing nor do I want this to form a habit in the future that he only relies on movement to sleep. I’m driving myself crazy. Every nap we practice putting him to sleep without the swing and he will go HOURS of just crying. Please any tips. Every second that he’s sleeping on the swing I’m by his side anxious checking his breath