Stop custom sound problem

I added a stopsound to a function, the problem is that the logs show me that this command causes the function to not work later. I don't know how to tell the datapack that that sound exists and not cause that function to stop working.
Continue to help post