Inference failed but code works locally

my code works locally for all the environments, but on submitting, the inference seems to fail for acrobot and taxi. I have also not used any external libraries. What might be the issue?

Also is there any maximum time limit given to our program?

I am facing the same issue, with previously working code.