I wouldn't really say that Touka ruined "that" moment between sensei and Maya considering what would happen if they did kissed for real. So at what point or what really triggers the reset? I've been playing this game right from the start, now I'm really confused. One thing I know is that it "fixed" itself by literally yeeting Ayane's baby out of existence or by theory, it was because of her suicide (?) It pretty clear later on that the world is just one endless loop continuously changing probably through the choices of Sensei or whatever the heck is his real name. So if Ami gets pregnant for instance, then there will be another reset/jump(?)
Yeah, I shouldn't have drunk seven glasses of coffee
Edit: I remember Maya trying to have sensei and Ayane not to have sex to prove her theory. So yeah, Maya doesn't really know much either.