Hug the wall while opening the chest and you should be able to get the goods without dying.

The doors are useless, but there is a golden chest in one of the paths.