You kept resetting after killing sans and it made papyrus angry and goes insane, destroys your reset button and kills everyone in the timeline and you are trying to kill him, not for honorable reasons but for more EXP