Appears to be from nya- "when", wii (wip) "says", and different subject suffix -m, meaning something like, "when that happened..."