This happened to me today I decided to do my first attempt on room for one more and then at 5:33 seconds in the night the power went out and I died to salvage sonic.
Feel you. I died 13 seconds from beating No strings from running out of flashlight. And 19 seconds from getting 30 minutes on endless mode from Nightmare Tails