Why does the optional warning light unit (PL02A-TOS) stop working after I initialize TOS5300 series?

Initialization turns off all status signal output settings in the configuration settings.
You need to reset the configuration after initialization.
For more details, read the user’s manual – chapter of Appendix – Configuration Settings.