Training fails after a short time

in my case the issue was coming from Discreate Branches variables in actions . I set it 0 and then every thing was fixed