I didn’t do anything to trigger it. I just hit an enemy with the t5 hammer. The weapon was not cursed. This is most certainly a game breaking bug.
Edit: this is Experienced Pixel Dungeon
Something caused the game to see your number of turns in paralysis to be less than 0. Computers often convert this to a large positive number, and that’s how you got the bug, maybe.