If certain times of day are more stable, try and plan crafting sessions around that. I get awful lag in evenings at times, so I try not to craft during those hours. If it is truly random, you're doing as much as you can by adding an extra second to the `<wait.#>`.

Using a cancel macro when you notice a spike can help as well. I've salvaged a few crafts from breaking by having this handy:

/echo Macro stopped <se.1>