Epoch doesn't fit in a PHP integer

I am facing an error:
\phpfn.php(2590): Epoch doesn’t fit in a PHP integer

function FormatDateTime($ts, $dateFormat = "")
{
...
        $res = $fmt->format($dt); // Line 2590
...
}

How should I make the adjustment in this case?

DateRangeError errors are thrown when attempting to process a date that exceeds the PHP integer value. Are you working with a very large number (a future date)?

Yes, I am launching a payment that has several installments for up to 224 months

If you are using 32-bit PHP and your server supports 64-bit, you should upgrade your PHP to 64-bit.