electrical current detected in the stud
It sounds to me like you're using a (Southwire?) non contact voltage detector (NCVD), and it's sounding off when the switch has the wire energized, but it's not when it's not.  That would be normal - some of the NCVDs that will pick up low voltages will pick up 120VAC through the wall.