Normally macros don't repeat in an endless loop unless you have a repeater in your setup!
Or your triggering with a motion sensor that keeps detecting motion!
The 2 second delay posted by
yca should fix this. Also try purging delayed macro events/clear the interface then upload your macro! If these fail do as
steven r suggests and post your problem macro!