normally it does not have to be exact module. However, some boards are picky.
If impossible to get the exact module, else try to get module has about the same specs.
I haven't run into a board that was so picky about modules that they had to be exactly the same in a long long time. In fact, a lot the newer boards can run in dual channel even with completely different sized module.