Inspired by my misadventures at one in the morning today. But I vaguely recall running into this issue while servicing my Magnavox combo unit some years ago. I figure I'll make a post about this to help someone else retain their sanity.
Last night I had a tape jam in my JVC HR-S3600U, so I pulled the cover off to get my tape back.
Before I put the cover back on, I decided to test the tape loading, just to make sure. To my amazement and frustration, the VCR was acting like it had gone totally crazy. So I pulled the mechanism, ensured the mode switch was realigned, cleaned it, put it back together, put a tape in, and it ran fine.
Then I put the VCR back in its usual spot and it was acting funny again. So I moved it around a few times, tried different outlets, extension cords, etc. I was sure I was seeing reality crumble right before my eyes. Nothing made sense.
Then I accidentally hit the light switch, and the VCR snapped right out of its funk and loaded a tape properly.
So yes. If the machine is acting funny while you are servicing it, try turning off the lights.