Stake module public API includes:
initiate_slashing - with slash_period parameter
initiate_unstaking - with unstaking_period parameter
Currently, it is possible to call initiate_unstaking with zero unstaking_period to perform instant unstaking. But initiate_slashing demands greater than zero slash_period. Combined, these two functions cause an error when used together on instant unstaking with some slashes.