Spirit Pain's effect lasts a turn longer than the visuals.
In what way? It probably does its last turn's 'effect' and then disappears.
You can still attack yourself after the spirits are no longer visible, for one turn.
This should not happen anymore. I also fixed a bug where it was only lasting for 3 rounds at base level instead of 5.