Hey it’s not clear to me from your post what is unsafe about the bed. Assuming the bed is hard enough for the age of your kid and the only remaining concern is falling off ... you can push the bed up against the wall on 2 sides if that is possible. If you have one side up against the will you can consider sleeping sideways and put the kid between the wall and you. Also you can make bumpers on the side with rolling up blankets and sticking them under the mattress pad. Buying a bumper works well for traveling too like this. Hope they has helped!
Sunnyglade [2-Pack] Portable Bed Rail Bumper Inflatable Bumpers Waterproof Leak-Proof Toddlers Kids Baby Safety Guard Bed Side for All Sizes Beds Great for Home, Hotel, Or Travel https://www.amazon.com/dp/B07F7VT6Y9/ref=cm_sw_r_cp_api_glc_i_O-53FbDK3SDS7.