I have no battery optimization and, yes, today shell script actions seem to run flawlessly.I see the "shell script timeout" message happening on my device when I clean install the helper file but don't launch and configure it. Once I have launched the helper app and disabled battery optimization etc. the problem goes away.
Does the action actually work? What do you see in the log of the helper app?