Your other thread is directly related to this one, so linking it here.
Lua scripting LED lights switch on by vtx power switches - ArduPlane - ArduPilot Discourse
I think you have an electrical problem, possibly related to your VTX power supply. Your autopilot isn’t monitoring board voltage that I can see in your log, so I’m just going by your description as well as a couple of very strong current spikes that drop your battery below 13.5V at times. The failsafe you’re experiencing looks like a radio failsafe, which I think may be related.
If your autopilot is rebooting when you power your VTX on and off, it’s almost certainly a power supply issue. Either your battery isn’t up to the task, the bus from which your drawing VTX power is not suitable, or your have mis-wired in some other way.
You’ll want to solve these issues before trying to power even more peripheral hardware like LEDs.
Perhaps one of the team more experienced with Plane firmware can take a look at the logs and see if I’m missing anything.
As for your Lua script problems, you are trying to use a script that has LEDs on two channels, one for the left side and one for the right. According to the messages in your first post, you only have LEDs on one output pin, so that script will not work for you.
How many LEDs are connected?
What, exactly, do you want them to do?