A UK court sentenced a British hacker to seven years in prison on Monday for a series of cyberattacks, including leaking footage from Grand Theft Auto VI years before the blockbuster game’s release.