Theoretically, there is no particular limit to the number of grid cells ResX can handle.
The highest number of grid cells ResX has been implemented on a commercial project is around 21 million.
It is to be noted that by no means do we recommend using such high number of grid cells as the hardware requirements for RAM, CPU speed, disk space, number of simulation licenses and other factors will be very demanding in such cases.