The musician, who has two children with singer Rihanna, had faced more than two decades in prison if he had been convicted of the alleged attack on a former friend in Hollywood in 2021.