LPS-49146 Avoid clogging the CPU if after several attempts we cannot find a unique temporal file name. This should be nearly impossible, but if someone screws inner methods used by this function, we can end up eating the whole CPU of a customer and that's definitely much worse than aborting the request of a single user with a SystemException.