Thats whats weird. The world didn't crash and it also wasn't a battery dying problem. I just opened mineraft and it was gone. I already have the world fixed though so all's fine. I'll just leave the worldsave there incase you guys wanna look into why it corrupted. It's a superflat world with preset 1 grass 6 dirt(iirc) and 1 bedrock and quite some number of command blocks with a dirt platform in the sky around Y130~ Not sure how this info will help but I hope it might be helpful.
My problem isn't that it powers redstone infinitely. My problem with this is that the clock deactivates when it's supposed to still flicker even after exiting.