I seem to have accidentially turned on the torch on my Pip Boy. It is now casting a really bright light which is attracting enemies. I don’t know how to disable it as I don’t know how I even activated it in the first place :D (I am playing on Xbox One)
Press and hold the button that you use to activate the Pip-Boy is normally the button you use to turn the light on and off. On Xbox the default button should be holding the B button. On PS4, it will be the circle button.
Check the controls in the main menu to see what button the Pip-Boy is mapped to. Press and hold the button and the torch will toggle on and off.