Yup, it can be overnight just like that. Even if it looks like it’s working, moving voltages and all, I’m still willing to bet that’s the issue here.
Also when you do replace it, don’t get a cheap OEM-equivalent, just get the proper Nissan item. Cheap MAFs may look like they work, but they’ll just cause you other issues: been there, done that with the Impreza!