To be clear 5M240ZT100C5N is not a 100.0% direct drop in replacement for the EPM240T100I5N.
It is very close but there is a difference in core voltage (1.8V vs 3.3V) and a minor pin difference (pin 1, GND vs I/O).
But it is as close as you will get to a newer generation replacement in an active part.
As to availability, well, that remains to be seen. Virtually no FPGA parts from any vendor are available in stock anywhere right now.
You can refer to link: https://cdrdv2.intel.com/v1/dl/getContent/654699?explicitVersion=true
There is no guarantee the device will be available, but you can check with your local distributors.
I’m glad that your question has been addressed, I now transition this thread to community support. If you have a new question, feel free to open a new thread to get the support from Intel experts. Otherwise, the community users will continue to help you on this thread. Thank you.