Two things
1. RPi is not real-time...so if some other process gets priority, it could suspend irsend & cause an issue? Try increasing the gap between repeats
2. If the gap between repeated signals is too short, some(many) IR receivers will see that as noise/interference and the AGC automatically turns off/rejects the signal for a certain amount of time.