I have the code written out as such
ScriptApp.newTrigger('myFunction').timeBased().everyMinutes(5).create();
}
But when I check the execution log it shows that it's being triggered every second. Because it's running so often it's causing issues and sending emails saying that it's failed when in reality it's doing what it is supposed to.
This had 4 triggers running every minute causing it to run multiple times in a minute, deleting them worked and now it seems to run every minute without causing any issues.