The only reason is: your code has a bug, or several ones.

The only possible solution is: you identify your bugs and fix those.