I believe these are spaghetti worms. I have never known them to cause any issues. I have a ton, I see them mostly at night. They have never caused any issues- personally I leave them in the hopes they help as a clean up crew.
maybe others have other experience but that’s my experience lol.
good luck, and HAPPY REEFING!