Timeout and overflow of arduino

How can I resolve this ? I thinked that the problem comes from the use of String..

We haven't seen all of your code, yet, or ANY proof that you need to use ANY Strings. So, stop using Strings.