Open the apps script editor.
Go to the Settings tab
Look in “Script Properties” for any unwanted triggers in properties, and remove them.
Check if there's a red marker at the start of the function.
If there is, then delete the word 'function', then type it in again so that the red marker is removed.