9 month old not sleeping

I live in a tiny house where his bed has to be at the end of my bed. He stays up all night crying till i put him in my bed. The problem with this is I'm terrified to sleep with him. My bed sits up pretty high and im scared hes going to roll off. He wont sleep anywhere but my bed though. I'm so tired I'm doing terrible at work. Plus im homeschooling my older children right now. Any tips to make him like his bed more.