Hi Manohara,
5M240ZM100I5N and 5M240ZM100C5N have same number of pins and IO count. The only difference is temperature grade.
5M160ZM100C5N has the same package pin and pin count with 5M240ZM100I5N and 5M240ZM100C5N.
The logic element value for 160 is lesser than 240.
You may need to check in Quartus if your design can fit in 240 part. If it cannot fit your design, potentially you may need to redesign.
useful link
https://www.intel.com/content/dam/www/programmable/us/en/pdfs/literature/hb/max-v/mv51001.pdf
You may want to refer to Table 1-2.
However, I will suggest you to contact your FAE to get help and support to your issue. They may have more info to share.
Thanks!
Wani