Hello,
You would first need to share any automations that you have that try to control these lights. The problem is most likely there.
You can use the </> button like this… How to format your code in forum posts
OR… Here is an example of how to fix formatting from the site FAQ Page.
How to help us help you - or How to ask a good question.