Stereo power question (help!)

I would run a wire to the battery for the yellow contant power connection on the stereo. The other wire should work fine for the acc power. If it keeps doing what you're describing, you've got an issue somewhere. It's worth testing the light switch.