I recently had a reel go viral about how we decided to put a twin platform bed at the end of our king bed in our master for our kids to go to if they felt scared at night. This way they felt safe and comforted, we aren't all squeezed in a bed, and for the most part we all get our 8 hours of interrupted sleep!
When it's not in use I keep it styled as a bench!
The bed that we purchased is no longer in stock, but here are a few similar options I've found!

Sources: