Pegg was diagnosed with cancer in 2019. On 22 April 2021, Pegg said he would be resigning to have treatment for cancer. He died on 10 June 2021 at the age of 40. His death caused a by-election for Stretton.