If you want to use this as a learning exercise in CAD software and functional part design, please go ahead and I wish you the best of journeys.
A print is plenty strong enough. I would use 3 walls and adaptive cubic infill, to save filament. Fillet all the edges to relieve material stress on the block and avoid piercing the mattress.
If you just want to prop up that bed like that, use your boots or lunchbox.
edit Just saw the comment about 8" wood. Yikes no. 2400mm x 44mm x 44mm beam should cost you less than 10 euros. If you can’t carpentry, print corner brackets and screw them into a box with the corner brackets. You will need a tape measure, pencil, and a type of hand saw called a “tenon saw”, also under 10 euros. Don’t need power screwdriver. (Sheet wood would give you sides on your box, but I would not recommend trying to cut sheet wood accurately without power tools).
