I don't know why my spotlight flashlight is going so crazy. Help?

Please help me! I’m trying to make a horror/survival/shooter game, and I really need a spotlight flashlight.

Thanks in advance.

Set the light rendering mode to “Important”, as opposed to auto or not important.