4877. [bug] Address integer overflow when exponentially backing off retry intervals. [RT #47041] (cherry picked from commit 8b440753)