For the record, im on ps4 and have experienced this slightly terrifying bug. Sadly i lack data on what exactly i pressed right before it occurred.
Its an effective way of surprise-redecorating your home.
I will probably never see this bug again, as i stopped entering my storage while holding a hammer or food/brews in my hand. Havent experienced it since that change.
Both times it happened i stopped it by clicking the hammerswing button. (R2 on ps4)
Edit: both times it happened i was coming out of my storage. Not sure if i pressed any buttons when exiting. I have a small suspicion, that speed is a factor. In my case the speed of placing stuff quickly in my storage, then exiting it, while moving away from my storage, before actually having fully exited the gleamchest.