As it says, the sword choose its owner, hence Zoro doesn’t go on a rampage spree like Hakuba.
Now Cavendish’s condition is very similar saga from movie Cursed Holy Sword, Hakuba awakens when Cavendish falls asleep and grants him incredible speed, to the point that he moves too fast for the eyes to track; even with Haki he can barely be seen. Due to this, back in the Rommel Kingdom, everyone believed it was the wind that was slashing people. As such, the phenomenon became known as the “Kamaitachi of Rommel” ( “Sickle Weasel of Rommel”).
Now Hakuba is very good example as described in legends of Muramasa that spirit takes over the body and is described as bloodthirsty. Cavendish slashed 20 people in Colosseum as soon as Hakuba awakened, similarly he tried to kill Bartolomeo and Robin in Dressrosa.
Conclusion: cursed swords carry negative energy or spirit left there by the swordsmith or the original wielder of swords, which directly influences the owner of the sword.
All rights go to the maker of this theory.