I read somewhere that she was hiding away and praying for Sora's safety. Then she felt Kairi coming closer to her and forgot about Sora and focused on meeting Kairi, but when she got closer to Kairi - her powers became lessened and that's why her prayers didn't work.
Namine just needed an elixer to recharge her MP bar tbh if she couldn't pray anymore.